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

python - RuntimeError: can't re-enter readline -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -