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

FreeBSD Manual Pages

  
 
  

home | help
std::ranges...or::iterator(3) C++ Standard Libarystd::ranges...or::iterator(3)

NAME
       std::ranges::enumerate_view::iterator::iterator	- std::ranges::enumer-
       ate_view::iterator::iterator

Synopsis
	  /*iterator*/()
	      requires	  std::default_initializable<ranges::iterator_t<Base>>
       (1) (since C++23)
	  = default;
	  constexpr /*iterator*/( /*iterator*/<!Const> i )

	      requires			       Const			    &&
       (2) (since C++23)

		  std::convertible_to<ranges::iterator_t<V>,
	  ranges::iterator_t<Base>>;
	  private:

	  constexpr    explicit	    /*iterator*/(     ranges::iterator_t<Base>
       (3) (exposition
	  current,
       only*)

					   difference_type pos);

	  Construct an iterator.

	  1)  Default  constructor.  Value-initializes the underlying iterator
       current_	with
	  ranges::iterator_t<Base>() and the underlying	index pos_ with	0.
	  2) Conversion	from /*iterator*/<false> to  /*iterator*/<true>.  Ini-
       tializes	current_
	  with std::move(i.current_) and pos_ with i.pos_.
	  3) A private constructor which is used by enumerate_view::begin and
	  enumerate_view::end.	This  constructor  is not accessible to	users.
       Initializes
	  current_ with	std::move(current) and pos_ with pos.

Parameters
	  i - an /*iterator*/<false>

Example
	   This	section	is incomplete
	   Reason: no example

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10	 std::ranges...or::iterator(3)

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

home | help