![]() | InDesign SDK 20.5 |
#include <K2Stack.h>
Public Types | |
| typedef _C::value_type | value_type |
| typedef _C::size_type | size_type |
| typedef _C | container_type |
Public Member Functions | |
| stack (const _C &x=_C()) | |
| bool16 | empty () const |
| size_type | size () const |
| value_type & | top () |
| const value_type & | top () const |
| void | push (const value_type &x) |
| void | pop () |
Protected Attributes | |
| _C | c |
Friends | |
| bool16 | operator== (const stack< T, _C > &lhs, const stack< T, _C > &rhs) |
| bool16 | operator!= (const stack< T, _C > &lhs, const stack< T, _C > &rhs) |
| bool16 | operator< (const stack< T, _C > &lhs, const stack< T, _C > &rhs) |
| bool16 | operator<= (const stack< T, _C > &lhs, const stack< T, _C > &rhs) |
| bool16 | operator> (const stack< T, _C > &lhs, const stack< T, _C > &rhs) |
| bool16 | operator>= (const stack< T, _C > &lhs, const stack< T, _C > &rhs) |
This is an STL style stack (adaptor) based on K2Vector.
| inline |
Tests if the stack is empty.
| inline |
Extracts an element from the top of the stack.
| inline |
Adds an element to the top of the stack.
| inline |
Gets the size of the stack (number of elements).
| inline |
Gets the element at the top of the stack without extracting it.
| inline |
Gets the element at the top of the stack.