Defined in header <execution> | ||
inlineconstexpr just_error_t just_error{}; struct just_error_t{/*unspecified*/}; | (since C++26) (customization point object) | |
Call signature | ||
execution::senderauto just_error(auto&& error); | (since C++26) | |
A sender factory that returns a sender which completes immediately by calling the receiver’sset_error().
Lete be a subexpression represented by an input error which will be injected and returned by the receiver. The expressionjust_error(e) isexpression-equivalent to/*make-sender*/(just_error,/*product-type*/(e))
The nameexecution::just_error denotes acustomization point object, which is a constfunction object of aliteralsemiregular class type. The cv-unqualified version of its type is a tag type denoted asexecution::just_error_t. SeeCustomizationPointObject for details.
If the provided error is an lvalue reference, a copy is made inside the returned sender and a non-const lvalue reference to the copy is sent to the receiver’sset_error. If the provided value is an rvalue reference, it is moved into the returned sender and an rvalue reference to it is sent to the receiver’sset_error.
| This section is incomplete Reason: no example |