std::execution::just
来自cppreference.com
在标头 <execution> 定义
|
||
struct just_t { /* 未指明 */ }; |
(1) | (C++26 起) |
inline constexpr just_t just{}; |
(2) | (C++26 起) (定制点对象) |
调用签名 |
||
execution::sender auto just( auto&&... values ); |
(C++26 起) | |
发送器工厂,它返回的发送器在调用接收器的 set_value()
时立即完成。
令 ts 为子���达式包。表达式 just(ts...) 表达式等价于 /*make-sender*/(just, /*product-type*/(ts...))
定制点对象
名字 execution::just
代表一个定制点对象,它是某个字面 semiregular
类类型的 const 函数对象。它的类型的无 cv 限定版本是一种标签类型,由 execution::just_t
表示。 细节参见定制点对象 (CustomizationPointObject) 。
[编辑] 示例
本节未完成 原因:暂无示例 |