template<class Tag, class Env, class Default>
constexpr decltype(auto) query-with-default(
Tag, const Env& env, Default&& value) noexcept(see below);
概要
query-with-defaultは、Senderアルゴリズム動作仕様定義で用いられる説明専用の関数テンプレートである。
説明用の式eを、適格であるならばTag()(env)とする。そうでなければ、static_cast<Default>(std::forward<Default>(value))とする。
戻り値
eを返す。
備考
noexcept節の式はnoexcept(e)となる。
バージョン
言語
- C++26