Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-02-13 00:00:15


On Wednesday 12 February 2003 07:15 pm, David Abrahams wrote:
> Douglas Gregor <gregod_at_[hidden]> writes:
> > We've discussed making boost::ref/boost::cref work for arbitrary
> > functions objects before. I just committed a version of ref.hpp that
> > supports this ability to the sandbox. With this code, you can write:
> >
> > std::transform(c.begin(), c.end(), out, boost::ref(f));
>
> What's the key feature? Overloaded operator() on reference_wrapper?

Yes.

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk