|Member of the primary template|
Promise& promise() const;
| Member of specialization |
std::noop_coroutine_promise& promise() const noexcept;
Obtains a reference to the promise object.
The behavior is undefined if
*this does not refer to a coroutine whose promise object has not been destroyed.
This function is not provided for the specialization
A reference to the promise object.
The promise object of a no-op coroutine is not destroyed as long as there is some
std::noop_coroutine_handle referring to the coroutine.
| creates a
(public static member function)
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.