Namespaces
Variants

operator- (ranges::enumerate_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++23以降)
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++23以降)

基となる iterator x の基となる sentinel y の間の距離を計算します。

これらの関数テンプレートは通常の unqualified lookup qualified lookup では可視化されず、 enumerate_view:: sentinel が引数の関連クラスである場合にのみ argument-dependent lookup によって発見されます。

パラメータ

x - an iterator
y - a sentinel

戻り値

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