Showing content from https://en.cppreference.com/w/cpp/language/../../cpp/coroutine/generator/promise_type.html below:
std::generator<Ref,V,Allocator>::promise_type - cppreference.com
class generator<Ref, V, Allocator>::promise_type;
(since C++23)
The promise type of std::generator.
[edit] Data members Member Description std::add_pointer_t<std::generator::yielded> value_
A pointer to the yielded value. Default value is nullptr.
(exposition-only member object*) std::exception_ptr except_
A pointer to an exception object.
(exposition-only member object*) [edit] Member functions
(constructor)
(implicitly declared)
constructs the promise_type
object
(public member function)
(destructor)
(implicitly declared)
destroys the promise_type
object
(public member function) issues the generator 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 from co_yield
(public member function)
await_transform
[deleted]
maps the object obtained from co_await to an awaiter
(public member function) handles co_return; or the exit out of coroutine's body
(public member function) processes exceptions that leaked from the coroutine's body
(public member function) allocates memory using Allocator
(public static member function) [edit] deallocates memory previously obtained from operator new
(public static member function) [edit] [edit] Example [edit] See also
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4