NAME

operator-(std::reverse_iterator) - operator-(std::reverse_iterator)

Synopsis


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


Returns the distance between two iterator adaptors.

Parameters


lhs, rhs - iterator adaptors to compute the difference of

Return value


rhs.base() - lhs.base()

Example


 This section is incomplete
 Reason: no example