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

履歴 編集

customization point object
<execution>

std::execution::unstoppable(C++26)

namespace std::execution {
  inline constexpr unspecified unstoppable{};
}

概要

unstoppableは、get_stop_tokenクエリオブジェクトがnever_stop_tokenを返すよう書き換えて、内側Senderと外側Receiver環境を接続するSenderアダプタである。

効果

説明用の式sndrに対して、呼び出し式unstoppable(sndr)は式write_env(sndr, prop(get_stop_token, never_stop_token{}))と等価。

バージョン

言語

  • C++26

処理系

関連項目

参照