Пример #1
0
void Stack <T>::pop (void)
{
	if(this->top_>=0)
	
		top_--;
	
	else
	   empty_exception();
}
Пример #2
0
void Stack <T>::pop (void)
{
	if(!(this->is_empty()))
		{
			top_--;
		
		}
	else
	   empty_exception();
}
Пример #3
0
void Stack <T>::pop (void)
{
	if (this->cur_size_ == 0)
	{
		throw empty_exception();
	}
	else
	{
		--this->cur_size_;	//top most element now not accessible
	}
}
Пример #4
0
void Stack <T>::pop (void)
{
	if(this->is_empty())
	{
		throw  empty_exception ("The Stack is Empty !!!");
	}
	else
	{
		this->peak_--;

	}
}
void Stack <T>::pop (void)
{
	//*** Check if stack is empty.If it is Throw Exception
	if(this->is_empty())
	{
		throw  empty_exception ("The Stack is Empty !!!");
	}
	else
	{
		this->peak_--;

	}
}