T
toton
Hi,
Is it possible to alias a class with a different name ?
something like
typedef template<class T>std::vector<T> index_type<T> ;
So that then I can write,
index_type<std::size_t> index_t;
The main aim is that, at present I am using index_type same as
std::vector , but later I want to switch to a more specific class.
I can do the same with #define, but looking for a c++ solution .
thanks
abir
Is it possible to alias a class with a different name ?
something like
typedef template<class T>std::vector<T> index_type<T> ;
So that then I can write,
index_type<std::size_t> index_t;
The main aim is that, at present I am using index_type same as
std::vector , but later I want to switch to a more specific class.
I can do the same with #define, but looking for a c++ solution .
thanks
abir