Namespaces
Variants

std::execution:: just_stopped

From cppreference.net
定义于头文件 <execution>
inline constexpr just_stopped_t just_stopped { } ;
struct just_stopped_t { /*unspecified*/ } ;
(C++26 起)
(定制点对象)
调用签名
execution :: sender auto just_stopped ( ) ;
(C++26 起)

一个发送器工厂,返回的发送器会通过调用接收器的 set_stopped() 立即完成。

表达式 just_stopped ( ) /*make-sender*/ ( just_stopped ) 具有 表达式等价性

定制点对象

名称 execution::just_stopped 表示一个 定制点对象 ,它是一个常量 函数对象 ,具有 字面量 类型的 semiregular 类类型。其类型的 cv 非限定版本是一个标记类型,表示为 execution::just_stopped_t 。详情请参阅 定制点对象

示例