|
Boost : |
Subject: Re: [boost] [functional] New functor adaptors
From: Mathieu Champlon (m.champlon_at_[hidden])
Date: 2013-09-17 00:43:11
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk