I am after two things. I first want to typedef the vector
class to something a little more meaningful such as List
. I tried the following but it gave me a compile error:
template <typename T>
typedef vector<T> List<T>
Secondly I want to override the <<
operator of the vector
class, but I have no idea how I would go about it without creating a new class.
This may seem counter-productive but my end aim is to have something that non-programmers (or people that haven't done c++ before) can read that makes semantic sense.