|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-03-18 09:59:03
From: "rogeeff" <rogeeff_at_[hidden]>
> --- In boost_at_y..., "Peter Dimov" <pdimov_at_m...> 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))
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk