[coroutine.handle.con] (original) (raw)

17 Language support library [support]

17.13 Coroutines [support.coroutine]

17.13.4 Class template coroutine_handle [coroutine.handle]

17.13.4.2 Construct/reset [coroutine.handle.con]

constexpr coroutine_handle() noexcept;constexpr coroutine_handle(nullptr_t) noexcept;

Postconditions: address() == nullptr.

static coroutine_handle from_promise(Promise& p);

Preconditions: p is a reference to a promise object of a coroutine.

Postconditions: addressof(h.promise()) == addressof(p).

Returns: A coroutine handle h referring to the coroutine.

coroutine_handle& operator=(nullptr_t) noexcept;

Postconditions: address() == nullptr.