Is there a way to typedef a templatized struct in C++? For instance something like:
template <typename T>
struct mylist
{
std::vector<T> contents;
// ... other members
};
typedef struct mylist<T> * List<T>; // this is illegal
My goal is to hide the fact that my List
is a pointer such that I can write code like:
List<int> intList;
List<char> charList;