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