Re: [Boost-users] Using lambda to count elements in list of lists

1 Feb
2006
1 Feb
'06
3:14 p.m.
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
6961
Age (days ago)
6961
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel Lidström