• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <coroutine>

    std::coroutine_handle::promise

    Promise& promise() const;
    

    概要

    コルーチンのPromiseオブジェクトへの参照を返す。

    事前条件

    *thisが有効なコルーチンを指すこと。

    戻り値

    コルーチンのPromiseオブジェクトへの参照。

    備考

    型消去されたコルーチンハンドルcoroutine_handle<>では、本メンバ関数は提供されない。

    バージョン

    言語

    • C++20

    処理系

    関連項目