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

FreeBSD Manual Pages

  
 
  

home | help
std::ranges...rator::base(3)  C++ Standard Libary std::ranges...rator::base(3)

NAME
       std::ranges::elements_view::iterator::base      -     std::ranges::ele-
       ments_view::iterator::base

Synopsis
	  constexpr const ranges::iterator_t<Base>& base() const  &  noexcept;
       (1) (since C++20)
	  constexpr	    ranges::iterator_t<Base>	     base()	   &&;
       (2) (since C++20)

	  Returns the underlying iterator.

	  1) Returns a reference to the	underlying iterator.
	  2) Move constructs the result	from the underlying iterator.

Parameters
	  (none)

Return value
	  1) A reference to the	underlying iterator.
	  1) An	iterator move constructed from the underlying iterator.

Example
	   This	section	is incomplete
	   Reason: no example

	  Defect reports

	  The following	behavior-changing defect reports were applied retroac-
       tively to
	  previously published C++ standards.

	     DR	      Applied	 to		  Behavior    as     published
       Correct behavior
	  LWG 3533 C++20      the const& overload of base returns a copy   re-
       turns a reference
			      of the underlying	iterator
	  LWG  3593  C++20	 the  const&  overload	of  base  might	not be
       made noexcept
			      noexcept

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10	  std::ranges...rator::base(3)

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

home | help