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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -