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