Boost logo

Boost :

From: Joe Gottman (jgottman_at_[hidden])
Date: 2008-05-06 20:40:40


    I want to use either bind or lambda to create a small function
object to pass to std::transform. Is one noticeable more efficient than
the other? The call would either be like

transform(a.begin(), a.end(), b.begin(),
      boost::bind(multiplies(), _1, x));

or
transform(a.begin(),a.end(), b.begin(),
    _1 * x);

Joe Gotttman


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