On Wed, 24 Mar 2021 at 17:57, Peter Dimov via Boost
wrote: The goal here is to make simple lambdas shorter, not to compete with the core language lambdas in all cases, which is neither possible nor necessary.
If you just need to say _1 < 0, or _1 < x, or _1 * 2 + 1, the language lambda boilerplate takes up more than 50% of the whole thing. If, on the other hand, you need to express something more complex than Lambda2 can handle, switch to the language lambda.
Why not add some nice syntactic sugar to the shipping library, i.e. something like this:
template< typename A, typename F> int operator+= (A&& a, F&& f) {return std::count_if( a.cbegin(), a.cend(), f);}
template