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

FreeBSD Manual Pages

  
 
  

home | help
std::generator::begin(3)      C++ Standard Libary     std::generator::begin(3)

NAME
       std::generator::begin - std::generator::begin

Synopsis
	  /*iterator*/ begin();	 (since	C++23)

	  Pushes coroutine_ into *active_ stack, then evaluates	coroutine_.re-
       sume().

	  Before  invocation  of begin() the coroutine_	must refer to a	corou-
       tine suspended at
	  its initial suspend point.

Return value
	  An iterator whose coroutine_ member refers to	the same coroutine  as
       coroutine_ does.

Notes
	  It  is  an  undefined	behavior to call begin() more than once	on the
       same generator
	  object.

Example
	   This	section	is incomplete
	   Reason: no example

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10	      std::generator::begin(3)

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

home | help