Can I convert a reverse iterator to a forward iterator?
Reverse iterators have a member base() which returns a corresponding forward iterator. Beware that this isn’t an iterator that refers to the same object – it actually refers to the next object in the sequence. This is so that rbegin() corresponds with end() and rend() corresponds with begin(). So if you want to return an … Read more