On Mon, Nov 14, 2005 at 05:55:46PM +0100, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | + pit_type pit = 0; > | + for ( ; pit < pars_.size() && &pars_[pit] != ∥ ++pit) > | + ; > > You know... terse does not mean easy to understand.
That's why I usually write this as pit_type pit = 0; for ( ; pit != pars_.size(); ++pit) if (&par_[pit] == &par) break; i.e. a combination of two idiom: Loop over a range, and break out if something interesting happens. Andre'