#include <type_allocator.h>
Inheritance diagram for stack:

Public Types | |
|
typedef type_allocator<T, defAlloc>::iterator | iterator |
| Better definition of iterator for subclasses. | |
Public Methods | |
| ~stack () | |
| Destruction of stack invokes destroy method. | |
| void | destroy_obj () |
| Just ask base class to release storage. | |
| void | push (const T& id) |
| Push specified object onto stack. More... | |
| void | pop (T& id) |
| Remove last object on stack (pop from stack). More... | |
Friends | |
| int | operator== (const stack<T, defAlloc>& iA, const stack<T, defAlloc>& iB) |
| So that type allocator lists can be part of other lists. | |
Implements push and pop operators for last in first out behavior.
|
||||
|
Push specified object onto stack.
|
|
||||
|
Remove last object on stack (pop from stack). Set id to the object removed from stack.
|
1.2.0 written by Dimitri van Heesch,
© 1997-2000