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)

Compares two reverse_iterators for equality.

[edit] Return value

1) x.current == y.current

2) x.current != y.current

[edit] Example

[edit] See also

orders reverse_iterators
(function template)