Range-based-for C++ snippet