
6 May
2008
6 May
'08
6:40 p.m.
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