0

たとえば、変換テンプレートがあります (それを行うための既存のライブラリはありますか?)

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;};

変換から、それは変換します

std::tuple<T0, T1, T2>; // version A

std::tuple<C0, C1, C2>; // version B

のように、一般的にそれを行う任意の方法

template<class tupleA, template<class> class Convert>
{
    typedef .... tupleB;
}

その他の質問: (1) 特定のタプルから可変引数を取得できますか? (2) もしそうなら、可変個引数に convert を使用できますか?

4

1 に答える 1