D
DeMarcus
I want to encapsulate the STL and today I use
this solution.
template< class T >
struct MyVector
{
typedef std::vector<T> Type;
};
And in use it becomes
MyVector<int>::Type someVector;
But I'm tired of using this ::Type extension.
Why can't I define MyVector like this?
template< class T >
typedef std::vector<T> MyVector;
Thanks
Daniel
this solution.
template< class T >
struct MyVector
{
typedef std::vector<T> Type;
};
And in use it becomes
MyVector<int>::Type someVector;
But I'm tired of using this ::Type extension.
Why can't I define MyVector like this?
template< class T >
typedef std::vector<T> MyVector;
Thanks
Daniel