Namespaces
Variants

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

cppreference.net에서 가져옴
 
 
범위 라이브러리
범위 어댑터
 
 
friend constexpr bool operator==( const /*iterator*/<Const>& x, const /*sentinel*/& y );
(C++23부터)

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

current_을(를) x의 기본 반복자로, end_를 y의 기본 센티널로 나타냅니다. 다음과 동등합니다:

return x.current_ == y.end_;.

이 함수는 일반적인 비한정 또는 한정 조회에는 보이지 않으며, 인자 종속 조회를 통해서만 찾을 수 있습니다. 단, enumerate_view::sentinel<Const>이(가) 인자의 연관 클래스인 경우에 한합니다.

!= 연산자는 합성되어 operator==에서 비롯됩니다.

매개변수

x - 비교할 iterator
y - 비교할 sentinel

반환값

비교 결과.

예제