Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 810 Bytes

File metadata and controls

40 lines (27 loc) · 810 Bytes

promise

  • 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

処理系

関連項目