std::execution::just_stopped
From cppreference.com
| ヘッダ <execution> で定義 |
||
| inline constexpr just_stopped_t just_stopped{}; struct just_stopped_t { /*未指定*/ }; |
(C++26以降) (カスタマイズポイントオブジェクト) |
|
| 呼び出しシグネチャ |
||
| execution::sender auto just_stopped(); |
(C++26以降) | |
受信側のset_stopped()を呼び出すことで即座に完了する sender を返す sender ファクトリ。
式 just_stopped() は /*make-sender*/(just_stopped) と式等価です。
カスタマイゼーションポイントオブジェクト
名前 execution::just_stopped は、リテラルな semiregular クラス型の定数 関数オブジェクトである*カスタマイズポイントオブジェクト*を指します。その型の cv 修飾されていないバージョンは、execution::just_stopped_t という名前のタグ型として指定されます。
execution::just_stopped_t のすべてのインスタンスは等価です。同じ引数に対して異なる execution::just_stopped_t 型のインスタンスを呼び出す効果は、インスタンスを表す式が左辺値か右辺値か、および const 修飾されているかどうかに関わらず等価です(ただし、volatile 修飾されたインスタンスは呼び出し可能であることが要求されません)。したがって、execution::just_stopped は自由にコピーでき、そのコピーは相互に交換可能に使用できます。
型のセット Args... が与えられた場合、std::declval<Args>()... が上記の execution::just_stopped への引数の要件を満たす場合、execution::just_stopped_t は以下をモデル化します。
- std::invocable<execution::just_stopped_t, Args...>,
- std::invocable<const execution::just_stopped_t, Args...>,
- std::invocable<execution::just_stopped_t&, Args...>、および
- std::invocable<const execution::just_stopped_t&, Args...>.
それ以外の場合、execution::just_stopped_t の関数呼び出し演算子はオーバーロード解決に参加しません。
[編集] 例
| このセクションは未完成です 理由: 例がありません |