Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: