树  0.1
数据结构_第6章
Stack::linkStack< T >::node Struct Reference
Collaboration diagram for Stack::linkStack< T >::node:

Public Member Functions

 node (const T &x=T(), node *_next=nullptr)
 
 node (T &&x, node *_next=nullptr)
 
 ~node ()=default
 

Public Attributes

data
 
nodenext
 

Detailed Description

template<typename T>
struct Stack::linkStack< T >::node

Definition at line 51 of file linkStack.hpp.

Constructor & Destructor Documentation

◆ node() [1/2]

template<typename T >
Stack::linkStack< T >::node::node ( const T &  x = T(),
node _next = nullptr 
)
inline

Definition at line 68 of file linkStack.hpp.

◆ node() [2/2]

template<typename T >
Stack::linkStack< T >::node::node ( T &&  x,
node _next = nullptr 
)
inline

Definition at line 70 of file linkStack.hpp.

◆ ~node()

template<typename T >
Stack::linkStack< T >::node::~node ( )
default

Member Data Documentation

◆ data

template<typename T >
T Stack::linkStack< T >::node::data

Definition at line 65 of file linkStack.hpp.

Referenced by Stack::linkStack< T >::pop(), and Stack::linkStack< T >::push().

◆ next

template<typename T >
node* Stack::linkStack< T >::node::next

Definition at line 66 of file linkStack.hpp.

Referenced by Stack::linkStack< T >::push().


The documentation for this struct was generated from the following file: