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

FreeBSD Manual Pages

  
 
  

home | help
std::corout...operatorbool(3) C++ Standard Libarystd::corout...operatorbool(3)

NAME
       std::coroutine_handle::operatorbool  - std::coroutine_handle::operator-
       bool

Synopsis
	  explicit constexpr operator bool() const noexcept;  (since C++20)

	  Checks whether *this is non-null, i.e. the value  of	*this  is  ob-
       tained from the
	  promise  object  of  some  coroutine.	 Equivalent to return bool(ad-
       dress());.

	  If Promise is	std::noop_coroutine_promise, this conversion  function
       always returns
	  true.

Parameters
	  (none)

Return value
	  bool(address()), or true if Promise is std::noop_coroutine_promise.

See also
	  address exports the underlying address, i.e. the pointer backing the
       coroutine
	  (C++20) (public member function)

http://cppreference.com		  2022.07.31	 std::corout...operatorbool(3)

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

home | help