Data Structures Class Templates
Various data structures implemented using c++ class templates.
|
~Stack()
Destructor.
Definition: stack_impl.h:19
bool isEmpty()
Member function for checking if stack is empty.
Contains implementation of the Stack class template.
void push(T value)
Member function to push data into the stack.
Definition: stack_impl.h:27
void display()
Member function for displaying the stack.
Definition: stack_impl.h:48
Stack(size_t s=10)
Constructor.
Definition: stack_impl.h:13
T stacktop()
Member function which returns element at top of the stack.
Definition: stack_impl.h:41
Class template for stack data type.
Definition: stack.h:15
T pop()
Member function which removes and returns element at the top of the stack.
Definition: stack_impl.h:34