Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::execut..._as_optional(3) C++ Standard Libarystd::execut..._as_optional(3)

NAME
       std::execution::stopped_as_optional   -	std::execution::stopped_as_op-
       tional

Synopsis
	  Defined in header <execution>
	  execution::sender auto stopped_as_optional(

	      single-sender auto snd		       (since C++26)

	  );

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

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>>.

http://cppreference.com		  2024.06.10	 std::execut..._as_optional(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::execution::stopped_as_optional&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help