Add std-style iteration to Juce containers


#1

It would be nice to add std-style iteration to juce containers.
It would allow writing
for (auto it = myHashMap.begin(); it != myHashMap.end(); ++it)
or
for (auto& element : myHashMap)

instead of the explicit
for (HashMap<String, String>::Iterator it(myHashMap); i.next();)

Any plans for adding this feature?


#2

All the other containers have modern iterators it for a long time, I didn’t realise HashMap was still lacking one. Yup, will add that!


#3

I just went to look this up and noticed that the code examples in the docs don’t have the modern iterator examples.