[coroutine.handle.observers] (original) (raw)
17 Language support library [support]
17.13 Coroutines [support.coroutine]
17.13.4 Class template coroutine_handle [coroutine.handle]
17.13.4.5 Observers [coroutine.handle.observers]
constexpr explicit operator bool() const noexcept;
Returns: address() != nullptr.
bool done() const;
Preconditions: *this refers to a suspended coroutine.
Returns: true if the coroutine is suspended at its final suspend point, otherwise false.