
9 Mar
2004
9 Mar
'04
1:50 p.m.
| > transform(v.begin(), v.vend(), v.begin() | > (auto x) ((int y) auto { return y + x; }) (i)); | > | | | Yes, but this is a quite complex and hard to read way to express | something simpler.
Yeah, the corresponding lambda in Python is: labmbda x,y: x+y It'd be nice if we could get to something that simple. -- Dave Abrahams Boost Consulting www.boost-consulting.com