class template
std::coroutine_handle
- Header
<coroutine>- Scope
std- cppreference
- std::coroutine_handle
Synopsis
template<class Promise = void>
struct coroutine_handle;Specializations
Member functions
| Name | Declaration |
|---|---|
coroutine_handleconstructor · 2 overloads | coroutine_handle() +1 more |
operator=operator | coroutine_handle& operator=(nullptr_t value) |
addressmember function | void* address() const |
destroymember function | void destroy() const |
donemember function | bool done() const |
operator()operator | void operator()() const |
promisemember function | Promise& promise() const |
resumemember function | void resume() const |
operator boolconversion function | operator bool() const |
operator coroutine_handle<>conversion function | operator coroutine_handle<>() const |
Static member functions
| Name | Declaration |
|---|---|
from_addressstatic member function | coroutine_handle from_address(void* addr) |
from_promisestatic member function | coroutine_handle from_promise(Promise& p) |