std::execution::stopped_as_optional

Header: <execution>

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

# Declarations

execution::sender auto stopped_as_optional( /*single-sender*/ auto snd );

(since C++26)

# Parameters

# Return value

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

# Example

This section is incompleteReason: no example