void Stack <T>::pop (void) { if(this->top_>=0) top_--; else empty_exception(); }
void Stack <T>::pop (void) { if(!(this->is_empty())) { top_--; } else empty_exception(); }
void Stack <T>::pop (void) { if (this->cur_size_ == 0) { throw empty_exception(); } else { --this->cur_size_; //top most element now not accessible } }
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_--; } }