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

17 Language support library [support]

17.13 Coroutines [support.coroutine]

17.13.4 Class template coroutine_handle [coroutine.handle]

17.13.4.7 Promise access [coroutine.handle.promise]

🔗

Promise& promise() const;

1

#

Preconditions: *this refers to a coroutine.

2

#

Returns: A reference to the promise of the coroutine.