Namespaces
Variants
Actions

std::execution::just

From cppreference.com
< cpp‎ | execution
 
 
Execution control library
 
Defined in header <execution>
struct just_t { /*unspecified*/ };
(1) (since C++26)
inline constexpr just_t just{};
(2) (since C++26)
(customization point object)
Call signature
execution::sender auto just( auto&&... values );
(since C++26)

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

Let ts be a pack of subexpressions. The expression just(ts...) is expression-equivalent to /*make-sender*/(just, /*product-type*/(ts...))

Customization point objects

The name execution::just denotes a customization point object, which is a const function object of a literal semiregular class type. The cv-unqualified version of its type is a tag type denoted as execution::just_t. See CustomizationPointObject for details.

[edit] Example

This section is incomplete
Reason: no example
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/execution/just&oldid=179213"

AltStyle によって変換されたページ (->オリジナル) /