How to make a tuple from a tuple?
问题 For example, I have a convert template (any existing library to do it?) template<class T> struct Convert; template<> struct Convert<T0> {typedef C0 Type;}; template<> struct Convert<T1> {typedef C1 Type;}; template<> struct Convert<T2> {typedef C2 Type;}; From the convert, It convert std::tuple<T0, T1, T2>; // version A To std::tuple<C0, C1, C2>; // version B Any way to do it generally, like template<class tupleA, template<class> class Convert> { typedef .... tupleB; } Some other questions: