
8 May
2004
8 May
'04
3:55 a.m.
David Abrahams wrote:
Err, this could only work if you were willing to pass the loop block to the macro. Might be worth the pain, though (?)
If you are willing to pass the loop body to the macro, you don't need the inner for loop at all. for (C::iterator s = c.begin(), f = c.end(); s != f; ++s) { C::reference r = *s; // Body goes here } -- Rainer Deyke - rainerd@eldwood.com - http://eldwood.com