Namespaces
Variants

operator==,<=> (ranges::zip_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 < /*maybe-const*/ < Const, Views >>> && ... ) ;
(1) (C++23 이후)
friend constexpr auto operator <=> ( const /*iterator*/ & x, const /*iterator*/ & y )
requires ranges:: random_access_range < Base > ;
(2) (C++23 이후)

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

current_ 를 적응된 뷰들의 요소에 대한 반복자들의 기반 튜플-유사 객체로 설정합니다.

1) 반환값:
  • x. current_ == y. current_ 만약 /*all-bidirectional*/ < Const, Views... > 가 참일 경우.
  • 그렇지 않으면, true 를 반환하는 정수 0 <= i < sizeof... ( Views ) 가 존재할 경우.
  • 그렇지 않으면, false .
2) 다음에 해당함 return x. current_ <=> y. current_ ; .

이 함수는 일반적인 비한정(unqualified) 또는 한정(qualified) 조회 에는 보이지 않으며, 인수가 std::ranges::zip_view:: iterator <Const> 를 연관 클래스로 가질 때에만 인수 종속 조회(argument-dependent lookup) 에 의해서만 찾을 수 있습니다.

< , <= , > , >= , 그리고 != 연산자들은 각각 합성됩니다 operator <=> operator == 로부터.

매개변수

x, y - 비교할 반복자

반환값

비교 결과

참고 항목

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