Namespaces
Variants

operator== (ranges::adjacent_view:: iterator , ranges::adjacent_view:: sentinel )

From cppreference.net
Ranges library
Range adaptors
template < bool OtherConst >

requires std:: sentinel_for < ranges:: sentinel_t < Base > ,
ranges:: iterator_t < /*maybe-const*/ < OtherConst, V >>>
friend constexpr bool operator == ( const /*iterator*/ < OtherConst > & x,

const /*sentinel*/ & y ) ;
(desde C++23)

Compara el iterador subyacente de x con el centinela subyacente de y .

Equivalente a: return x. current_ . back ( ) == y. end_ , donde current_ es el array subyacente de iteradores en x , y end_ es el centinela subyacente en y .

Esta función no es visible para la búsqueda unqualified o qualified ordinaria, y solo puede ser encontrada mediante argument-dependent lookup cuando adjacent_view:: sentinel <Const> es una clase asociada de los argumentos.

El operador != es sintetizado a partir de operator== .

Parámetros

x - iterator a comparar
y - sentinel a comparar

Valor de retorno

true si el iterador subyacente almacenado en x es el iterador final.

Ejemplo