operator-(std::move_iterator) (3) - Linux Manuals

operator-(std::move_iterator): operator-(std::move_iterator)

NAME

operator-(std::move_iterator) - operator-(std::move_iterator)

Synopsis


template< class Iterator1, class Iterator2 >
auto operator-( const move_iterator<Iterator1>& lhs, (since C++11)
const move_iterator<Iterator2>& rhs (until C++17)
) -> decltype(lhs.base() - rhs.base());
template< class Iterator1, class Iterator2 >
constexpr auto operator-( const move_iterator<Iterator1>& lhs, (since C++17)
const move_iterator<Iterator2>& rhs
) -> decltype(lhs.base() - rhs.base());


Returns the distance between two iterator adaptors.

Parameters


lhs, rhs - iterator adaptors to compute the difference of

Return value


lhs.base() - rhs.base()

Example


 This section is incomplete
 Reason: no example