c++11 - Aliasing a template template parameters -


is possible use using keyword aliasing template template parameter?

template <template<int> class t> struct foo {     using type = t; }; 

thanks

using (or typedef) provide alias type, never higher-kinded type (template template parameter). can templatize alias on int:

template <template<int> class t> struct foo {     template <int x>     using type = t<x>; }; 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -