Boost logo

Boost :

From: Michael Hart (imsaicollector_at_[hidden])
Date: 2003-11-20 22:19:58


> > some_range_type r(. . .);
> >
> > for(; r; ++r)
> > {
> > *r; // Do something with the current position
> > }
> >
Just to stick my two cents in why bother with a ++
operator in the for loop the increment is implied

so you could write something like the following
for (; r; )
{
   *r;
}

increment and test makes more sense for a range object
 within the of a loop. Right :-)

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk