@m_adam said in Reverse iterators, how to use them?:
Hi @C4DS
Here the message from the development team which confirms what I said to you previously.
Hi Maxime,
I didn't doubt what you said earlier.
I only wanted to point out that it wasn't clear from reading the documentation which collection could be used with reverse iterators.
It's nice mentioning in the documentation about RBegin/REnd, Range based loops, etc ... but not everyone looks into the collection implementation to see which types do have RBegin/REnd or are range based, ...
HashMap doesn’t support -- so you can’t use a reverse iterator for that.
It wouldn’t make sense anyway because HashMap iteration is unordered.
Having used std::map some might expect HashMap to be ordered, but it isn't mentioned anywhere it isn't.
But the point has been made, and it is now clear how to use reverse iterator.
Topic well be closed as "solved".