Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
There are 3 for loops in C++,
the usual for loop, the range-based for loop (introduced in C++11) and the std::for_each
for loop.
-
Both the range-based for loop and …