Zen
A cross-platform functional programming language
|
Intrinsic stack type. More...
#include <zbl.hpp>
Public Member Functions | |
V & | top () |
Return the topmost item in stack. | |
const V & | top () const |
Return a const reference the topmost item in stack. | |
void | push (const V &v) |
Push a value on the stackl. | |
V | pop () |
Pop the topmst value from the stack. | |
Private Types | |
typedef listbase< stack< V > , QStack< V >, QVectorIterator < V >, V > | baseT |
The base class type. |
Intrinsic stack type.
V pop | ( | ) | [inline] |
Pop the topmst value from the stack.
void push | ( | const V & | v | ) | [inline] |
Push a value on the stackl.
v | Value to push |
V& top | ( | ) | [inline] |
Return the topmost item in stack.
const V& top | ( | ) | const [inline] |
Return a const reference the topmost item in stack.