I have a class that is wrapper to vector that just makes it easier to do common tasks as well as has other features. it uses templates so I can make various types. How can I determine if a type is a pointer or not? I want to make a function to free the memory of all the elements but I only want it to work on pointers as it would probably crash if I did it to a non pointer.

So say I got this:

template <class T>

How do I check if T is a pointer type?