Namespaces
Variants
Views
Actions

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

From cppreference.com
template <class Iterator1, class Iterator2>

bool operator <  (const reverse_iterator<Iterator1>& x,

                  const reverse_iterator<Iterator2>& y);
(1)
template <class Iterator1, class Iterator2>

bool operator <= (const reverse_iterator<Iterator1>& x,

                  const reverse_iterator<Iterator2>& y);
(2)
template <class Iterator1, class Iterator2>

bool operator >  (const reverse_iterator<Iterator1>& x,

                  const reverse_iterator<Iterator2>& y);
(3)
template <class Iterator1, class Iterator2>

bool operator >= (const reverse_iterator<Iterator1>& x,

                  const reverse_iterator<Iterator2>& y);
(4)

Orders reverse_iterators by applying the reverse ordering operators to the base iterators.

[edit] Return Value

1) x.current > y.current

2) x.current >= y.current

3) x.current < y.current

4) x.current <= y.current

[edit] Example

[edit] See also

compares two reverse_iterators for equality
(function template)