Hacker News new | ask | show | jobs
by eska 2228 days ago
If the type is not obvious one can also write

    for(Class entry : container)
This is still an uncontroversial improvement over having to typedef or use auto for the iterator.
1 comments

Sure, that is what i'd probably write myself too.