std::execution::schedule, std::execution::schedule_result_t
来自cppreference.com
| 在标头 <execution> 定义
|
||
| struct schedule_t { /* 未指明 */ }; |
(1) | (C++26 起) |
| inline constexpr schedule_t schedule{}; |
(2) | (C++26 起) (定制点对象) |
| 调用签名 |
||
| execution::sender auto schedule( execution::scheduler auto sch ); |
(C++26 起) | |
| 辅助结果类型 |
||
| template< execution::scheduler Sch > using schedule_result_t = decltype(schedule(std::declval<Sch>())); |
(3) | (C++26 起) |
获得一个发送器,描述在所提供调度器上的任务图的启动。
对于子表达式 sch,表达式 schedule(sch) 表达式等价于 sch.schedule()。
定制点对象
名字 execution::schedule 代表一个定制点对象,它是某个字面 semiregular 类类型的 const 函数对象。它的类型的无 cv 限定版本是一种标签类型,由 execution::schedule_t 表示。 细节参见定制点对象 (CustomizationPointObject) 。
示例
| 本节未完成 原因:暂无示例 |