Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-02-12 19:15:54

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?

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at