|
Boost : |
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2003-04-07 07:34:50
I haven't been able to find any utility to any sensible metaprogramming
with boost::tuples's. In particular, I'm interested in having one of the
following (either will do):
1. Write a metaprogram that reverses a boost::tuple, i.e a construct
say reverse such that
reverse<Tuple>::type
is a tuple containing the same elements as Tuple but in reverse order.
2. Obtain a tuple type from a given Tuple containing all its members
excepts the last one, vg:
all_but_last<tuple<int,double,char> >::type == tuple<int, double>
Thanx for your help. Regards,
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk