When should I use the new ranged-for and can I combine it with the new cbegin/cend?
问题 The new ranged-for in C++11 will be very concise and useful, of course. As far as I understand how it works, it looks up the "containers" begin and end by trying *Argument-Depending-Lookup" (ADT). But another addition is that all the containers now have cbegin() and cend() to get the const_iterators for the container. I am a bit confused, on the one hand I guess I should use cbegin() if I do not want to modify the container, on the other hand I have to add an additional const inside the