std::execution:: schedule, std::execution:: schedule_result_t
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
定义于头文件
<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
类类型的常量
函数对象
。其类型的 cv 非限定版本是一个标记类型,表示为
execution::schedule_t
。详细信息请参阅
定制点对象
。
示例
|
本节内容不完整
原因:缺少示例 |