What is the version of this line without typedef ?

template<class T>
class stacklistnode{
private:
......

};


typedef stacklistnode<T> *ptr;
ptr maxlevel[100];

I can't understand the pointer in typedef can someone provide a way to write the two lines without typedef
can someone provide a way to write the two lines without typedef
1
2
3
4
5
template <class T>
class stacklistnode{};

template <class T>
using ptr = stacklistnode<T>*;


http://en.cppreference.com/w/cpp/language/type_alias
Topic archived. No new replies allowed.