Jon Stewart on 29 Jul 2003 22:09:00 -0000 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [hosers-talk] nmh question |
> >encourages everyone to check out boost::lambda > > that had better not be a lambda calculus class or you get six more nerd > points. More like 60... #include <iostream> #include <vector> #include <algorithm> #include <boost/lambda.hpp> int main(void) { using boost::lambda; std::vector<int> v(10); std::for_each(v.begin(), v.end(), _1 = 1); std::for_each(v.begin(), v.end(), std::cout << _1 << ends); return 0; } -- Jon Stewart stew1@xxxxxxxxxxx _______________________________________________ hosers-talk mailing list hosers-talk@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/hosers-talk