void InstructionStack::pop(OperandStack & stack) { if (stack.empty()) throw EmptyStackException(); stack.pop(); }
T pop() { if(!stack.size()) throw EmptyStackException(); T tmp = stack.back(); stack.pop_back(); return tmp; }
int StackOfIntegers::pop() { if(size==0) throw EmptyStackException(); return elements[--size]; }