Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2003-10-01 05:43:40


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alan,

Alan Bellingham wrote:

|
| My personal idiom - when I know the end iterator won't change - is
|
| container c;
| for (container::const_iterator it = c.begin(), end = c.end();
| it != end;
| ++it)
| { ... }

I use this one too. There is one caveat, in an ideal world end should be
const.

Thomas

- --
Dipl.-Ing. Thomas Witt
Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet
Hannover
voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001
http://www.ive.uni-hannover.de

- --
Thomas Witt
witt_at_[hidden]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/eq/c0ds/gS3XsBoRAmY3AJ4qPMZ5NiYXyOgI+EFK4bVhQrJ1FwCeIEJr
xNm7nrt/KgdR7+pJ2PXsoAA=
=Pby3
-----END PGP SIGNATURE-----


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