j
k
j a
j l
...std::transform(begin, end, out, boost::bind( std::plus<int>(), 5, boost::bind( std::multiplies<int>(), 2, _1 ) ) );
std::transform(begin, end, out, boost::bind( std::plus<int>(), 5, boost::bind( std::multiplies<int>(), 2, _1 ) ) );
I don't think anything beats the Boost.Phoenix syntax: std::transform(begin, end, out, 2 * _1 + 5); Regards, Nate
Back to the thread
Back to the list