Namespaces
Variants

std::generator<Ref,V,Allocator>::operator=

From cppreference.com
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)    
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
 
Ranges library
Range adaptors
 
 
generator& operator=( generator other ) noexcept;
(since C++23)

Replaces the contents of the generator object. Equivalent to:

std::swap(coroutine_, other.coroutine_);
std::swap(active_, other.active_);

Parameters

other - another generator to be moved from

Return value

*this

Complexity

Notes

Iterators previously obtained from other are not invalidated – they become iterators into *this.

This assignment operator is technically a copy assignment operator, although std::generator is only move assignable.

Example

Morty Proxy This is a proxified and sanitized view of the page, visit original site.