Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2006-11-03 10:00:19


Hi people

3 years of C# programming is eroding my metaprogramming habilities :(

Say I have a few arbitraty function objects:

A a ; B b ; C c ;

I can easily pipe them toghether using Boost.Bind:

bind(a, bind(b, bind(c,_1) ) )(some_starting_value);

But how do I create such a composed functor programatically from an
aribtrary tuple of function objects, as in tuple<A,B,C>?

The idea is to present to the user a simple interface were he pass just a
tuple of functors and I do the magic of turning them into a pipe.

TIA

-- 
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com/

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