Add std-style iteration to Juce containers

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)
for (auto& element : myHashMap)

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

Any plans for adding this feature?

1 Like

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!

1 Like

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