Namespaces
Variants
Actions

std::execution::stopped_as_optional

From cppreference.com
< cpp‎ | execution
 
 
Execution control library
 
Defined in header <execution>
execution::sender auto stopped_as_optional( /*single-sender*/ auto snd );
(since C++26)

[edit] Parameters

snd - input sender of which the value channel and stopped channel are mapped.

[edit] Return value

Returns a sender that maps the value channel from a T to an std::optional <std::decay_t <T>>, and maps the stopped channel to a value of an empty std::optional <std::decay_t <T>>.

[edit] Example

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

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