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 lookup または qualified lookup では可視化されず、 adjacent_transform_view:: sentinel が引数の関連クラスである場合にのみ argument-dependent lookup によって発見されます。

パラメータ

x - イテレータ
y - センチネル

戻り値

イテレータとセンチネル間の距離。