operator-(std::move_iterator)
提供: cppreference.com
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()。
例
| This section is incomplete Reason: no example |