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

FreeBSD Manual Pages

  
 
  

home | help
std::basic_...nt-iterator(3)  C++ Standard Libary std::basic_...nt-iterator(3)

NAME
       std::basic_const_iterator::operatorconstant-iterator	-     std::ba-
       sic_const_iterator::operatorconstant-iterator

Synopsis
	  template< /*not-a-const-iterator*/ CI	>

	    requires /*constant-iterator*/<CI> &&    (1) (since	C++23)
		std::convertible_to<Iter const&, CI>

	  constexpr operator CI() const	&;
	  template< /*not-a-const-iterator*/ CI	>

	    requires /*constant-iterator*/<CI> &&    (2) (since	C++23)
		std::convertible_to<Iter, CI>

	  constexpr operator CI() &&;

	  Returns the converted	constant iterator to which an underlying iter-
       ator current can
	  be explicitly	or implicitly convertible.

	  CI satisfies the exposition-only concept /*not-a-const-iterator*/ if
       and only	if
	  it's not a specialization of basic_const_iterator.

Return value
	  1) current
	  2) std::move(current)

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
	  P2836R1   C++23	 basic_const_iterator	doesn't	  follow   its
       conversion operator
			     underlying		type's		convertibility
       provided

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10	  std::basic_...nt-iterator(3)

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

home | help