Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/execution/just stopped"

From cppreference.com
< cpp‎ | execution
(update to standard (huh, the whole expression-equivalent paragraph evaporates because sizeof(ts...) must be zero)
(~)
Line 9: Line 9:
 
A sender factory that returns a sender that which completes immediately by calling the receiver’s {{rlpf|set_stopped}}.
 
A sender factory that returns a sender that which completes immediately by calling the receiver’s {{rlpf|set_stopped}}.
  
For any query object {{tt|q}}, the expression {{c|read_env(q)}} is  {{c|/*make-sender*/(read_env, q)}}.
+
The expression {{c|just_stopped()}} is [[cpp/language/expressions#Expression-equivalence|expression-equivalent]] to {{c|/*make-sender*/(just_stopped)*/}}
 
+
The expression {[c|just_stopped()}} is [[cpp/language/expressions#Expression-equivalence|expression-equivalent]] to {{lc|/*make-sender*/(just_stopped)*/
+
  
  

Revision as of 14:44, 4 October 2024

 
 
 
Defined in header <execution>
inline constexpr just_stopped_t just_stopped{};
struct just_stopped_t { /*unspecified*/ };
(since C++26)
(customization point object)

A sender factory that returns a sender that which completes immediately by calling the receiver’s set_stopped().

The expression just_stopped() is expression-equivalent to /*make-sender*/(just_stopped)*/


Example