#include <ustl.h>
Public Types | |
typedef Sequence::value_type | value_type |
typedef Sequence::size_type | size_type |
typedef Sequence::difference_type | difference_type |
typedef Sequence::reference | reference |
typedef Sequence::const_reference | const_reference |
typedef Sequence::pointer | pointer |
Public Member Functions | |
stack (void) | |
Default constructor. | |
stack (const Sequence &s) | |
Copies contents of s . | |
bool | empty (void) const |
Returns true if empty. | |
size_type | size (void) const |
Returns the number of elements. | |
reference | top (void) |
Returns the topmost element. | |
const_reference | top (void) const |
Returns the topmost element. | |
void | push (const value_type &v) |
Pushes v on the stack. | |
void | pop (void) |
Pops the topmost element from the stack. | |
bool | operator== (const stack &s) |
Compares to s . | |
bool | operator< (const stack &s) |
Compares to s . |