operator<,<=,>,>=(std::reverse_iterator) (3) - Linux Manuals

operator<,<=,>,>=(std::reverse_iterator): operator<,<=,>,>=(std::reverse_iterator)

NAME

operator<,<=,>,>=(std::reverse_iterator) - operator<,<=,>,>=(std::reverse_iterator)

Synopsis


template< class Iterator1, class Iterator2 >
bool operator==( const reverse_iterator<Iterator1>& lhs, (until C++17)
const reverse_iterator<Iterator2>& rhs );
template< class Iterator1, class Iterator2 >
constexpr bool operator==( const reverse_iterator<Iterator1>& lhs, (since C++17)
const reverse_iterator<Iterator2>& rhs );
template< class Iterator1, class Iterator2 >
bool operator!=( const reverse_iterator<Iterator1>& lhs, (until C++17)
const reverse_iterator<Iterator2>& rhs );
template< class Iterator1, class Iterator2 >
constexpr bool operator!=( const reverse_iterator<Iterator1>& lhs, (since C++17)
const reverse_iterator<Iterator2>& rhs );
template< class Iterator1, class Iterator2 >
bool operator<( const reverse_iterator<Iterator1>& lhs, (until C++17)
const reverse_iterator<Iterator2>& rhs );
template< class Iterator1, class Iterator2 >
constexpr bool operator<( const reverse_iterator<Iterator1>& lhs, (since C++17)
const reverse_iterator<Iterator2>& rhs ); (1)
template< class Iterator1, class Iterator2 >
bool operator<=( const reverse_iterator<Iterator1>& lhs, (until C++17)
const reverse_iterator<Iterator2>& rhs ); (2)
template< class Iterator1, class Iterator2 >
constexpr bool operator<=( const reverse_iterator<Iterator1>& lhs, (since C++17)
const reverse_iterator<Iterator2>& rhs ); (3)
template< class Iterator1, class Iterator2 >
bool operator>( const reverse_iterator<Iterator1>& lhs, (until C++17)
const reverse_iterator<Iterator2>& rhs ); (4)
template< class Iterator1, class Iterator2 >
constexpr bool operator>( const reverse_iterator<Iterator1>& lhs, (since C++17)
const reverse_iterator<Iterator2>& rhs ); (5)
template< class Iterator1, class Iterator2 >
bool operator>=( const reverse_iterator<Iterator1>& lhs, (until C++17)
const reverse_iterator<Iterator2>& rhs ); (6)
template< class Iterator1, class Iterator2 >
constexpr bool operator>=( const reverse_iterator<Iterator1>& lhs, (since C++17)
const reverse_iterator<Iterator2>& rhs );


Compares the underlying iterators. Inverse comparisons are applied in order to take into account that the iterator order is reversed.

Parameters


lhs, rhs - iterator adaptors to compare


Return Value


1) lhs.base() == rhs.base()
2) lhs.base() != rhs.base()
3) lhs.base() > rhs.base()
4) lhs.base() >= rhs.base()
5) lhs.base() < rhs.base()
6) lhs.base() <= rhs.base()

Example


 This section is incomplete
 Reason: no example