Take the following two lines of code:
for (int i = 0; i < some_vector.size(); i++) { //do stuff }
And this:
for (som
I probably should point out you can also call
std::for_each(some_vector.begin(), some_vector.end(), &do_stuff);