Boost logo

Boost Users :

From: EMalenfant_at_[hidden]
Date: 2006-03-28 12:40:26


From: Yuval Ronen [mailto:ronen_yuval_at_[hidden]]
>
> Is there a meta-function that creates a tuple type which
> contains the types contained in a type-sequence? (I'm talking
> about a similar thing to variant's make_variant_over).
>

We use a generator like this:

template<typename Typelist>
struct TupleGen
    : boost::mpl::reverse_fold<
         Typelist, boost::tuples::null_type,
boost::tuples::cons<boost::mpl::_2, boost::mpl::_1>
>
{
};


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net