Namespaces
Variants

operator- (ranges::elements_view:: sentinel )

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

requires std:: sized_sentinel_for < ranges:: sentinel_t < Base > ,
ranges:: iterator_t < /*maybe-const*/ < OtherConst, V >>>
friend constexpr ranges:: range_difference_t < /*maybe-const*/ < OtherConst, V >>

operator - ( const /*iterator*/ < OtherConst > & x, const /*sentinel*/ & y ) ;
(1) (C++20 이후)
template < bool OtherConst >

requires std:: sized_sentinel_for < ranges:: sentinel_t < Base > ,
ranges:: iterator_t < /*maybe-const*/ < OtherConst, V >>>
friend constexpr ranges:: range_difference_t < /*maybe-const*/ < OtherConst, V >>

operator - ( const /*sentinel*/ & y, const /*iterator*/ < OtherConst > & x ) ;
(2) (C++20 이후)

x 의 기반 반복자와 y 의 기반 센티널 사이의 거리를 계산합니다.

이 함수 템플릿들은 일반적인 unqualified lookup 또는 qualified lookup 에는 보이지 않으며, elements_view:: sentinel 이 인자들의 associated class일 때에만 argument-dependent lookup 에 의해 찾을 수 있습니다.

매개변수

x - an iterator
y - a sentinel

반환값

1) x. base ( ) - y. base ( )
2) y. base ( ) - x. base ( )