19 #ifndef __TPIE_INTERNAL_STACK_H__
20 #define __TPIE_INTERNAL_STACK_H__
72 #endif //__TPIE_INTERNAL_STACK_H__
T & top()
Return the topmost element on the stack.
size_t m_size
Number of elements pushed to the structure.
A generic internal stack.
Generic base for internal stack and vector with known memory requirements.
size_t size() const
Return the number of elements in the data structure.
A base class for a generic internal fixed size stack and vector.
Generic internal array with known memory requirements.
void pop()
Remove the topmost element from the stack.
Miscellaneous utility functions.
array< T > m_elements
Element storage.
internal_stack(size_t size=0)
Construct structure with given capacity.
void push(const T &val)
Add an element to the top of the stack.