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