Namespaces
Variants

operator== (std::move_iterator<Iter>, std::move_sentinel)

From cppreference.net
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11) (C++14)
(C++14) (C++14)
(C++11) (C++14)
(C++14) (C++14)
(C++17) (C++20)
(C++17)
(C++17)
template < std:: sentinel_for < Iter > S >

friend constexpr bool

operator == ( const move_iterator & i, const std:: move_sentinel < S > & s ) ;
(C++20 이후)

move_iterator move_sentinel 을 비교합니다.

이 오버로드는 다음 조건에서만 오버로드 해결에 참여합니다: i. base ( ) == s. base ( ) 가 올바른 형식이며 bool 로 변환 가능한 경우에만.

이 함수 템플릿은 일반적인 unqualified lookup 또는 qualified lookup 으로는 보이지 않으며, std:: move_iterator < Iter > 가 인자들의 연관 클래스일 때에만 argument-dependent lookup 으로 찾을 수 있습니다.

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

목차

매개변수

i - 비교할 이동 반복자
s - 비교할 이동 센티널

반환값

i. base ( ) == s. base ( )

예제

참고 항목

(C++11) (C++11) (C++20에서 제거됨) (C++11) (C++11) (C++11) (C++11) (C++20)
기본 반복자를 비교합니다
(함수 템플릿)