
17 Sep
2013
17 Sep
'13
4:43 a.m.
On 16/09/2013 20:11, Nathan Ridge wrote:
I don't think anything beats the Boost.Phoenix syntax:
std::transform(begin, end, out, 2 * _1 + 5);
To be totally fair it would be : std::transform(begin, end, out, 2 * boost::phoenix::placeholders::_1 + 5); Regards, MAT.