Context required for creating and executing coroutines.
Public Member Functions | |
| constexpr | CoroContext (Allocator &allocator) |
| constexpr | CoroContext (const CoroContext &)=default |
| constexpr CoroContext & | operator= (const CoroContext &)=default |
| constexpr Allocator & | allocator () const |
|
inlineconstexpr |
Creates a CoroContext, which uses the provided allocator to allocate coroutine state. A CoroContext may be used to invoke other coroutines. Its allocator can be used for other allocations, if desired.
Supports implicit conversion to simplify creating coroutines.