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

履歴 編集

class template
<execution>

std::this_thread::sync-wait-env(C++26)

namespace std::this_thread {
  struct sync-wait-env {
    execution::run_loop* loop;  // exposition only

    auto query(execution::get_scheduler_t) const noexcept {
      return loop->get_scheduler();
    }

    auto query(execution::get_delegation_scheduler_t) const noexcept {
      return loop->get_scheduler();
    }
  };
}

概要

sync-wait-envは、Senderアルゴリズム動作仕様定義で用いられる説明専用のクラステンプレートである。

Senderコンシューマsync_waitsync_wait_with_variant動作においてReceiver環境として利用される。

バージョン

言語

  • C++26

関連項目

参照