- coroutine[meta header]
- std[meta namespace]
- coroutine_handle[meta class]
- function[meta id-type]
- cpp20[meta cpp]
Promise& promise() const;
コルーチンのPromiseオブジェクトへの参照を返す。
*this
が有効なコルーチンを指すこと。
コルーチンのPromiseオブジェクトへの参照。
型消去されたコルーチンハンドルcoroutine_handle<>
では、本メンバ関数は提供されない。
- C++20
- Clang: ??
- GCC: 11.1
- Visual C++: ??