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

履歴 編集

function template
<execution>

std::execution::task::promise_type::コンストラクタ(C++26)

template<class... Args>
promise_type(const Args&... args);

概要

タスクコルーチンのPromise型コンストラクタ。 プログラマが本コンストラクタを直接利用することは想定されていない。

適格要件

(もしあれば)最初のallocator_arg_t型パラメータが最後のパラメータでないこと。

効果

Argsallocator_arg_t型の要素を含むとき、allocargsの次の要素で初期化する。 そうでなければ、allocallocator_type()で初期化する。

バージョン

言語

  • C++26

処理系

関連項目

参照