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

履歴 編集

class template
<execution>

std::execution::emplace-from(C++26)

template<callable Fun>
  requires is_nothrow_move_constructible_v<Fun>
struct emplace-from {
  Fun fun;  // exposition only
  using type = call-result-t<Fun>;

  constexpr operator type() && noexcept(nothrow-callable<Fun>) {
    return std::move(fun)();
  }

  constexpr type operator()() && noexcept(nothrow-callable<Fun>) {
    return std::move(fun)();
  }
};

概要

emplace-fromは、Senderアルゴリズム動作仕様定義で用いられる説明専用のクラステンプレートである。

バージョン

言語

  • C++26

関連項目

参照