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

FreeBSD Manual Pages

  
 
  

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

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

Synopsis
	  generator( const generator& )	= delete;  (1) (since C++23)
	  generator( generator&& other ) noexcept; (2) (since C++23)

	  Constructs a generator.

	  1) The copy-constructor is deleted.
	  2)  The  move-constructor that initializes the underlying coroutine_
       with
	  std::exchange(other.coroutine_, {}), and  the	 underlying  stack  of
       coroutine handles
	  (active_) with std::exchange(other.active_, nullptr).	Note, that the
       iterators,
	  previously  obtained from other, are not invalidated,	but become it-
       erators into
	  *this.

Parameters
	  other	- a generator object to	be moved in

Example
	   This	section	is incomplete
	   Reason: no example

Category:
	    * Todo no example

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

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

home | help