|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 | ||||
| promise_type | ||||
| Iterator | ||||
class generator<Ref, V, Allocator>::promise_type; | (since C++23) | |
The promise type ofstd::generator.
Contents |
| Member | Description |
std::add_pointer_t<std::generator::yielded>value_ | A pointer to the yielded value. Default value isnullptr. (exposition-only member object*) |
std::exception_ptrexcept_ | A pointer to an exception object. (exposition-only member object*) |
(constructor) (implicitly declared) | constructs thepromise_type object(public member function) |
(destructor) (implicitly declared) | destroys thepromise_type object(public member function) |
| issues thegenerator object (public member function) | |
| issues an awaiter for initial suspend point (public member function) | |
| issues an awaiter for final suspend point (public member function) | |
| processes the object obtained fromco_yield (public member function) | |
await_transform [deleted] | maps the object obtained fromco_await to an awaiter (public member function) |
| handlesco_return; or the exit out of coroutine's body (public member function) | |
| processes exceptions that leaked from the coroutine's body (public member function) | |
[static](C++23) | allocates memory usingAllocator(public static member function)[edit] |
[static](C++23) | deallocates memory previously obtained fromoperator new(public static member function)[edit] |
| This section is incomplete Reason: no example |
(C++20) | used for coroutines with no observable effects (class)[edit] |