std::coroutine_handle<Promise>::operator bool

Checks whether *this is non-null, i.e. the value of *this is obtained from the promise object of some coroutine. Equivalent to return bool(address());.

# Declarations

constexpr explicit operator bool() const noexcept;

(since C++20)

# Return value

bool(address()), or true if Promise is std::noop_coroutine_promise.

# See also