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:: sized_sentinel_for < Iter > S >

friend constexpr std:: iter_difference_t < Iter >

operator - ( const std:: move_sentinel < S > & s, const move_iterator & i ) ;
(1) (C++20以降)
template < std:: sized_sentinel_for < Iter > S >

friend constexpr std:: iter_difference_t < Iter >

operator - ( const move_iterator & i, const std:: move_sentinel < S > & s ) ;
(2) (C++20以降)

move_iterator move_sentinel の間の距離を返します。

これらの関数テンプレートは通常の unqualified lookup qualified lookup では可視化されず、引数が std:: move_iterator < Iter > を関連クラスとして持つ場合にのみ、 argument-dependent lookup によって発見されます。

目次

パラメータ

i - std:: move_iterator < Iter >
s - std:: move_sentinel < S > 、ただし S std:: sized_sentinel_for < Iter > を満たす

戻り値

1) s. base ( ) - i. base ( )
2) i. base ( ) - s. base ( )

関連項目

(C++11)
2つのイテレータアダプタ間の距離を計算する
(関数テンプレート)