
21 Apr
2004
21 Apr
'04
12:58 a.m.
"michael toksvig" <michaeltoksvig@yahoo.com> wrote in message news:c63fk0$ko0$1@sea.gmane.org... | Versus the rather redundant: | for (list<double>::iterator i = container.begin(); i !=container.end(); | ++i) | *i += 2; | | (Note that the latter stops working if container is represented using a | vector or a built-in array instead) not with some collection traits: for( iterator_of< T >::type i = begin( c ); i != end( c ); ++i ) *i +=2; br Thorsten