17 Sep
2013
17 Sep
'13
5:26 a.m.
On 17/09/13 12:43, Mathieu Champlon wrote:
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);
I think it's typical to bring the placeholders into the current scope. Ben