I'm trying to create a constructor that states what type of objects it's storing. Is there any simple way to accomplish this? I was looking at decltype.
template <typename T>
MyVector<T>::MyVector(int setCap)
{
m_ptr = new T[setCap];
m_size = 0;
m_capacity = setCap;
string typeSet = decltype(T);
cout << "New MyVector of type " << typeSet << " created\n";
}