cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
What is the version of this line without
What is the version of this line without typedef ?
Jun 21, 2017 at 5:43pm UTC
kishy nivas
(1)
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
Jun 21, 2017 at 5:58pm UTC
gunnerfunner
(2127)
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.