I want to create a template class that holds pointers to objects instead of objects themselves.
I have this:
But want this:Code:template <class T>
class MyADT { ... };
MyADT<datatype> adt;
What is the correct syntax?Code:template <class T*> // incorrect syntax!!
class MyADT { ... };
MyADT<datatype*> adt;
Thanks.