Namespaces
Variants

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

From cppreference.net
Ranges library
Range adaptors
friend constexpr bool operator == ( const /*iterator*/ & x, const /*iterator*/ & y )
requires std:: equality_comparable < ranges:: iterator_t < Base >> ;
(1) (C++20부터)
friend constexpr bool operator < ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(2) (C++20부터)
friend constexpr bool operator > ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(3) (C++20부터)
friend constexpr bool operator <= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(4) (C++20부터)
friend constexpr bool operator >= ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(5) (C++20부터)
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++20부터)

기본 반복자를 비교합니다.

1) 다음 표현식과 동등합니다: return x. current_ == y. current_ ; , 여기서 current_ 는 기반 반복자입니다.
2) 다음 표현과 동등합니다: return x. current_ < y. current_ ; , 여기서 current_ 는 기반 반복자입니다.
3) 다음에 해당함 return y < x ;
4) 다음에 해당함 return ! ( y < x ) ;
5) 다음과 동일함 return ! ( x < y ) ;
6) 다음 표현식과 동등합니다: return x. current_ <=> y. current_ ; , 여기서 current_ 는 기반 반복자입니다.

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

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

매개변수

x, y - 비교할 반복자

반환값

비교 결과

참고 항목

(C++20)
sentinel을 transform_view::begin 에서 반환된 iterator와 비교합니다
(function)