Thanks for a nice explanation CornedBeed!
Do you know the size of boost? I had a hard time downloading it. I was helping a friend! ()Of course, it's even nicer if you get yet more specialized, using Boost's Range and (candidate) RangeEx libraries:
Code:rex::for_each(v, std::cout << lambda::_1 << " bottles of beer.\n"); rex::for_each(l, std::cout << lambda::_1 << " red balloons.\n");
And what help it has over the plain and simple for() loop?
All the rest you said was more like a learning to me, so I agree!