|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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) |
| Member functions | ||||
| Conversion | ||||
| Observers | ||||
| Control | ||||
| Promise access | ||||
| Export/import | ||||
coroutine_handle::address | ||||
| Non-member functions | ||||
| Helper classes | ||||
constexprvoid* address()constnoexcept; | (since C++20) | |
Returns the underlying address of thecoroutine_handle. The return value is non-null if and only if the current value of thecoroutine_handle is obtained from a promise object of a coroutine.
Contents |
(none)
The underlying address.
The return value is non-null for specializationstd::noop_coroutine_handle, because astd::noop_coroutine_handle cannot be created without referring to a no-op coroutine.
[static] | imports a coroutine from a pointer (public static member function)[edit] |