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
|