std::execution::stopped_as_error
From cppreference.com
| ヘッダ <execution> で定義 |
||
| template< std::move_constructible Error > execution::sender auto stopped_as_error( execution::sender auto snd, Error err ); |
(C++26以降) | |
[編集] パラメータ
| snd | - | stopped チャネルが err にマッピングされる入力 sender |
| err | - | stop チャネルがマッピングされるエラー |
[編集] 戻り値
stopped チャネルを err のエラーにマッピングする sender を返します。
[編集] 例
| このセクションは未完成です 理由: 例がありません |