Ultralightweight C++ implementation of a void*
stack that is (mostly) compatible with java.util.Stack.
More...
#include <uvector.h>
Inheritance diagram for UStack:
Public Methods | |
UStack (int32_t initialCapacity = 8) | |
UStack (Deleter d, Comparer c, int32_t initialCapacity = 8) | |
UBool | empty (void) const |
void* | peek (void) const |
void* | pop (void) |
void* | push (void* obj) |
int32_t | search (void* obj) const |
Ultralightweight C++ implementation of a void*
stack that is (mostly) compatible with java.util.Stack.
As in java, this is merely a paper thin layer around UVector. See the UVector documentation for further information.
Design notes
The element at index n-1
is (of course) the top of the stack.
The poorly named empty()
method doesn't empty the stack; it determines if the stack is empty.
Definition at line 174 of file uvector.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|