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) (C++23부터)
friend constexpr bool operator < ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(2) (C++23부터)
friend constexpr bool operator > ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(3) (C++23부터)
friend constexpr bool operator <= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(4) (C++23부터)
friend constexpr bool operator >= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(5) (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) (C++23부터)

기본 반복자들을 비교합니다. current_ 를 기본 반복자 배열로 둡니다.

1) 다음과 동일함: return x. current_ . back ( ) == y. current_ . back ( ) .
2) 다음에 해당함 return x. current_ . back ( ) < y. current_ . back ( ) .
3) 다음에 해당함 return y < x ; .
4) 다음에 해당함 return ! ( y < x ) ; .
5) 다음에 해당함 return ! ( x < y ) ; .
6) 다음에 해당함 return x. base ( ) <=> y. base ( ) ; .

이 함수들은 일반적인 unqualified 또는 qualified lookup 으로는 보이지 않으며, 인수가 std::ranges::adjacent_view:: iterator <Const> 와 연관된 클래스일 때에만 argument-dependent lookup 을 통해서만 찾을 수 있습니다.

!= 연산자는 합성된 operator== 로부터 생성됩니다.

매개변수

x, y - 비교할 반복자

반환값

비교 결과.

참고 항목

(C++23)
sentinel을 adjacent_view::begin 에서 반환된 iterator와 비교합니다
(함수)