Esempio n. 1
0
void InstructionStack::pop(OperandStack & stack)
{
	if (stack.empty())
		throw EmptyStackException();
	stack.pop();
}
Esempio n. 2
0
 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];
}