Namespaces
Variants

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

From cppreference.net
Ranges library
Range adaptors
std::ranges::chunk_view
Member functions
Classes for input_range s
Deduction guides
outer-iterator
outer-iterator ::value_type
inner-iterator
friend constexpr bool operator == ( const /*iterator*/ & x, const /*iterator*/ & y ) ;
(1) (seit C++23)
friend constexpr bool operator == ( const /*iterator*/ & x, std:: default_sentinel_t ) ;
(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 bool operator >= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(6) (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 >> ;
(7) (seit C++23)

Vergleicht die zugrunde liegenden Iteratoren (oder den zugrunde liegenden Iterator und den Standard-Sentinel (2) ).

Seien current_ und end_ die zugrundeliegenden Datenmitglieder .

Entspricht:

1) return x. current_ == y. current_ ; .
2) return x. current_ == x. end_ ; .
3) return x. current_ < y. current_ ; .
4) return y < x ; .
5) return ! ( y < x ) ; .
6) return ! ( x < y ) ; .
7) return x. current_ <=> y. current_ ; .

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::chunk_view:: iterator <Const> eine assoziierte Klasse der Argumente ist.

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

Inhaltsverzeichnis

Parameter

x, y - die Iteratoren zum Vergleichen

Rückgabewert

Das Ergebnis des Vergleichs.

Beispiel

Siehe auch