c++ - Variadic template couples -
is possible write variadic couples of templates? like:
template<typename<typename a, typename b>...> class : public std::tuple<a<b>...> { };
thanks! :)
using type list got compile:
#include <iostream> #include <tuple> using namespace std; template <typename ...args> struct type_list {}; template<typename b, template <typename> class ...a> class test; template<typename ...b, template <typename> class ...a> class test<type_list<b...>, a...>: tuple<a<b>...> {}; template<typename t> class t1{}; template<typename t> class t2{}; template<typename t> class t3{}; int main() { auto t = test<type_list<int, double, char>, t1, t2, t3>(); return 0; }
i don't know, why need this, should make want.
Comments
Post a Comment