- [meta exposition-only]
- execution[meta header]
- class template[meta id-type]
- std::this_thread[meta namespace]
- cpp26[meta cpp]
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();
}
};
}- execution::run_loop[link ../execution/run_loop.md]
- execution::get_scheduler_t[link ../execution/get_scheduler.md]
- execution::get_delegation_scheduler_t[link ../execution/get_delegation_scheduler.md]
- get_scheduler()[link ../execution/run_loop/get_scheduler.md]
sync-wait-envは、Senderアルゴリズム動作仕様定義で用いられる説明専用のクラステンプレートである。
Senderコンシューマsync_wait、sync_wait_with_variant動作においてReceiverの環境として利用される。
- C++26