Exemplo n.º 1
0
	void Stack<Type>:: pop() {
		if(top_of_stack==-1){
			throw underflow_error("Stack underflow");
		}
		top_of_stack--;
		return;
	}
Exemplo n.º 2
0
	bignum& bignum::operator--()
	{
		if(sign_ && value_.all())
			throw_with_nested(underflow_error("number is too small"));

		if(value_.none())
			sign_ = false;
		value_.flip_until(!sign_);		
		return *this;
	}
Exemplo n.º 3
0
void __throw_underflow_error(const char* s) { throw underflow_error(s); }