|
|
|
LIFOStack< T > Class Template ReferenceA LIFO stack based on a singly-linked list. Operations are push(), pop(), top(), bottom() and empty(). More...
Inheritance diagram for LIFOStack< T >:
![]()
Collaboration diagram for LIFOStack< T >:
![]()
Detailed Descriptiontemplate<class T>
A LIFO stack based on a singly-linked list. Operations are push(), pop(), top(), bottom() and empty().
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LIFOStack | ( | ) | [inline] |
| LIFOStack | ( | T | a | ) | [inline] |
| T top | ( | ) | const [inline] |
| T bottom | ( | ) | const [inline] |
Return a copy of the bottom element.
Definition at line 83 of file LIFOStack.H.
References LList< SLListBase, T >::first().

| void push | ( | const T & | a | ) | [inline] |
| T pop | ( | ) | [inline] |
Pop the top element off the stack.
Definition at line 98 of file LIFOStack.H.
References LList< SLListBase, T >::insert().
