
21 Apr
2004
21 Apr
'04
4:06 a.m.
"Thorsten Ottosen" <nesotto@cs.auc.dk> wrote in message news:c64h07$8vs$1@sea.gmane.org...
"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
you and eric should talk /tox