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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -