C++11 range-for loop with iterators