Boost logo

Boost :

Subject: Re: [boost] [range][algorithms] How about making the range algorithms pipeable as the range adaptors are?
From: Viktor Sehr (viktor.sehr_at_[hidden])
Date: 2013-09-23 09:42:24


>
> In PStade Egg it was called [ambi]
> (
> http://p-stade.sourceforge.net/boost/libs/egg/doc/html/boost_egg/function_adaptors.html#boost_egg.function_adaptors.ambin
> ),
> but you have to specify the number of parameters of the function.

But ambiN only works with function objects, or am I wrong?

> I created one for a library I am writing, you can see the source code for
> pipable here:
> https://github.com/pfultz2/Zen/blob/master/zen/function/pipable.h

In the example at the top the syntax seem different from the test in the
bottom of the file,
how how you specify a pipeable wrapper for, for example
boost::range::accumulate?

/Viktor


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk