|
|
Coroutine traits | ||||
(C++20) | ||||
Coroutine handle | ||||
(C++20) | ||||
No-op coroutines | ||||
(C++20) | ||||
(C++20) | ||||
Trivial awaitables | ||||
(C++20) | ||||
(C++20) | ||||
Range generators | ||||
(C++23) |
|
Range primitives | |||||||
|
Range concepts | |||||||||||||||||||
|
Range factories | |||||||||
|
Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Helper items | |||||||||||||||||
|
Member functions | ||||
generator::operator= | ||||
promise_type | ||||
Iterator | ||||
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_
);
Contents |
other | - | another generator to be moved from |
*this
This section is incomplete |
Iterators previously obtained fromother are not invalidated – they become iterators into*this.
This assignment operator is technically acopy assignment operator, althoughstd::generator
is only move assignable.
This section is incomplete Reason: no example |