Instead of using
std::vector
I would like it to be
MyArray
What you would really want is a templated typedef. Unfortunately those are not supported in the current version of C++, but they will be added in C++0x.
For now, here's a possible workaround:
template struct My {
typedef std::vector Array;
};
My
Whether or not that is better than simply using std::vector directly, I'll leave to you to decide.