Namespaces
Variants

operator== (ranges::adjacent_view:: iterator , ranges::adjacent_view:: sentinel )

From cppreference.net
Ranges library
Range adaptors
template < bool OtherConst >

requires std:: sentinel_for < ranges:: sentinel_t < Base > ,
ranges:: iterator_t < /*maybe-const*/ < OtherConst, V >>>
friend constexpr bool operator == ( const /*iterator*/ < OtherConst > & x,

const /*sentinel*/ & y ) ;
(C++23 이후)

x 의 기반 반복자와 y 의 기반 센티널을 비교합니다.

다음 코드와 동일합니다: return x. current_ . back ( ) == y. end_ , 여기서 current_ x 의 기반 반복자 배열이며, end_ y 의 기반 센티널입니다.

이 함수는 일반적인 비한정(unqualified) 또는 한정된(qualified) 조회 로는 보이지 않으며, 인수 종속 조회(argument-dependent lookup)를 통해서만 찾을 수 있습니다. 이는 adjacent_view:: sentinel <Const> 가 인수들의 연관 클래스(associated class)인 경우에만 가능합니다.

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

매개변수

x - iterator 비교 대상
y - sentinel 비교 대상

반환값

true 를 반환하는 경우는 x 에 저장된 기본 반복자가 끝 반복자인 경우입니다.

예제