◐ Shell
clean mode source ↗

operator-(std::move_iterator) - cppreference.com

提供: cppreference.com

<tbody> </tbody> <tbody class="t-dcl-rev "> </tbody><tbody> </tbody>

template< class Iterator1, class Iterator2 > auto operator-( const move_iterator<Iterator1>& lhs, const move_iterator<Iterator2>& rhs ) -> decltype(lhs.base() - rhs.base());

(C++11以上)
(C++17未満)

template< class Iterator1, class Iterator2 > constexpr auto operator-( const move_iterator<Iterator1>& lhs, const move_iterator<Iterator2>& rhs ) -> decltype(lhs.base() - rhs.base());

(C++17以上)

2つのイテレータアダプタ間の距離を返します。

引数

lhs, rhs - 差を計算するイテレータアダプタ

戻り値

lhs.base() - rhs.base()