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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -