[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;

1

#

Returns: address() != nullptr.

🔗

bool done() const;

2

#

Preconditions: *this refers to a suspended coroutine.

3

#

Returns: true if the coroutine is suspended at its final suspend point, otherwise false.