samedi 6 janvier 2018

Using a template instance type within a template

If I were to write a template

  template<class T>
class myTemplate{
...
};

is there a syntax in either C++11 or C++14 which would allow me to identify a type of myTemplate<T>* within the actual template declaration?

For instance, what is the correct syntax for writing something like

template <class T>
class myTemplate{
...
void myTemplate(myTemplate<T>*, int);
....
};

TIA

Vinod

Aucun commentaire:

Enregistrer un commentaire