STACK
Classes
Files
You can use it as a standart stack for enything.
Interface
-
stack
Constructor, called automatically.
-
~stack
Destructor, called automatically.
-
operator=
Assignment, called automatically when you write stack2 = stack1
-
push & operator<<
Puts item on the top of the stack. Write like stack.push(the_item) or stack << the_item.
-
pop & operator>>
Takes item from the top of the stack, like the_item = stack.pop() or stack >> the_item.
-
clear
Removes all item from the stack.
-
empty
Returns, weather the stack is empty or not.
-
top
Returns item from the top of the stack without taking it out.