Namespaces
Variants

operator- (ranges::adjacent_transform_view:: sentinel )

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

requires std:: sized_sentinel_for < /*inner-sentinel*/ < Const > ,
/*inner-iterator*/ < OtherConst >>
friend constexpr
ranges:: range_difference_t < /*maybe-const*/ < OtherConst, InnerView >>

operator - ( const /*iterator*/ < OtherConst > & x, const /*sentinel*/ & y ) ;
(1) (C++23부터)
template < bool OtherConst >

requires std:: sized_sentinel_for < /*inner-sentinel*/ < Const > ,
/*inner-iterator*/ < OtherConst >>
friend constexpr
ranges:: range_difference_t < /*maybe-const*/ < OtherConst, InnerView >>

operator - ( const /*sentinel*/ & y, const /*iterator*/ < OtherConst > & x ) ;
(2) (C++23부터)

iterator x sentinel y 사이의 거리를 계산합니다.

1) 다음과 동일함: return x. inner_ - y. inner_ ; .
2) 다음과 동등함: return y. inner_ - x. inner_ ; .

이 함수 템플릿들은 일반적인 unqualified 또는 qualified lookup 으로는 보이지 않으며, 인수가 adjacent_transform_view:: sentinel 을 관련 클래스로 가질 때에만 argument-dependent lookup 에 의해 발견될 수 있습니다.

매개변수

x - 반복자
y - 센티넬

반환값

반복자와 센티널 간의 거리.

예제