Namespaces
Variants

operator==,<,>,<=,>=,<=> (ranges::adjacent_view:: iterator )

From cppreference.net
Ranges library
Range adaptors
friend constexpr bool operator == ( const /*iterator*/ & x, const /*iterator*/ & y ) ;
(1) (seit C++23)
friend constexpr bool operator < ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(2) (seit C++23)
friend constexpr bool operator > ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(3) (seit C++23)
friend constexpr bool operator <= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(4) (seit C++23)
friend constexpr bool operator >= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(5) (seit C++23)
friend constexpr auto operator <=> ( const /*iterator*/ & x, const /*iterator*/ & y )

requires ranges:: random_access_range < Base > &&

std:: three_way_comparable < ranges:: iterator_t < Base >> ;
(6) (seit C++23)

Vergleicht die zugrundeliegenden Iteratoren. Sei current_ ein zugrundeliegendes Array von Iteratoren.

1) Entspricht return x. current_ . back ( ) == y. current_ . back ( ) .
2) Entspricht return x. current_ . back ( ) < y. current_ . back ( ) .
3) Entspricht return y < x ; .
4) Entspricht return ! ( y < x ) ; .
5) Entspricht return ! ( x < y ) ; .
6) Entspricht return x. base ( ) <=> y. base ( ) ; .

Diese Funktionen sind für gewöhnliches unqualified oder qualified lookup nicht sichtbar und können nur durch argument-dependent lookup gefunden werden, wenn std::ranges::adjacent_view:: iterator <Const> eine assoziierte Klasse der Argumente ist.

Der != -Operator wird synthetisiert aus operator== .

Parameter

x, y - zu vergleichende Iteratoren

Rückgabewert

Ergebnis des Vergleichs.

Siehe auch

(C++23)
vergleicht einen Sentinel mit einem von adjacent_view::begin zurückgegebenen Iterator
(Funktion)