c++ - Can we introuduce aliases for template specializations? -
can introduce alias partial specialization? mean that:
template <class t, class v> class a{ }; typedef template <class t> a<t, int> mypartialspecializa<t>; int main(){ }
but doesn't work. standard that?
you need alias template this
template <class t, class v> class a{ }; template <class t> using mypartialspecializa = a<t, int>; int main() { mypartialspecializa<double> a; }
Comments
Post a Comment