ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Re: Review: lambda library
by Peter Dimov other posts by this author
Mar 18 2002 2:59PM messages near this date
Re: Review: lambda library | Re: [boost] Lambda library - comparison with FACT and other solutions?
From: rogeeff <rogeeff@[...]..> 
>  --- In boost@[...].. , Peter Dimov <pdimov@[...]..> wrote:
>  >
>  > std::vector<boost::shared_ptr<X> > v;
>  > std::for_each( v.begin(), v.end(), boost::bind(&X::f, _1) );
> 
>  How will it look like with LL?

Actually now that I think about it, this is probably a non-issue since LL
will just use bind(&X::f, *_1). This covers most of the cases. Thanks.

>  How will it look like with LL? I.e. how to define binary function
>  like this:
>  f(x,y) = g(x,x)?

(_2, bind(g, _1, _1))
Thread:
Peter Dimov
rogeeff
Peter Dimov

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved