vendredi 3 août 2018

C++: Is it possible to template a typename?

Suppose I write:

template<typename X>
typename Namespace::Something<X> S;

And then I template a function as follows:

template<typename X>
void my_function(X input){
    S<X> y = S<X>(input);
}

Is this possible? What would be the syntax to do it if it is possible?

Aucun commentaire:

Enregistrer un commentaire