Boost logo

Boost Users :

From: Daniel Lidström (daniel.lidstrom_at_[hidden])
Date: 2006-02-01 10:14:04


Sebastian Redl scribbled:

> Yes, but you need binding syntax:
>
> typedef list< list< int > > lli;
> for_each(ll.begin(), ll.end(), var(count) += bind(&lli::size, _1));

Thanks to both Sebastian and Stuart!

Hälsningar,
Daniel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net