• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

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

    履歴 編集

    <coroutine>

    coroutine

    概要

    <coroutine>ヘッダでは、コルーチンの制御に関する機能を提供する。

    このヘッダでは、以下の標準ヘッダをインクルードする:

    本ヘッダはフリースタンディング環境でも提供される。

    コルーチントレイト

    名前 説明 対応バージョン
    coroutine_traits Promise型導出トレイト(class template) C++20

    コルーチンハンドル

    名前 説明 対応バージョン
    coroutine_handle コルーチンハンドル(class template) C++20

    何もしないコルーチン

    名前 説明 対応バージョン
    noop_coroutine_promise 何もしないコルーチンPromise型(class) C++20
    noop_coroutine_handle 何もしないコルーチンのハンドル(class) C++20
    noop_coroutine 何もしないコルーチンのハンドルを取得(function) C++20

    トリビアルAwaitable型

    名前 説明 対応バージョン
    suspend_never 常に中断しないAwaitable型(class) C++20
    suspend_always 常に中断するAwaitable型(class) C++20

    バージョン

    言語

    • C++20

    処理系

    関連項目

    参照