Thanks for a nice explanation CornedBeed!
Can you tell me why (2) is better than (1)? (2) Requires so much understanding of underground stuff! Whereas for ( ; ; ) is known to every C++ beginner!?
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!![]()



LinkBack URL
About LinkBacks
)





