|
stack::poppublic member function
void pop ( ); Remove element Removes the element on top of the stack, effectively reducing its size by one. The value of this element can be retrieved before being popped by calling member stack::top.This calls the removed element's destructor. This member function effectively calls the member function pop_back of the underlying container object (such as deque::pop_back). ParametersnoneReturn valuenoneExample
Output:
ComplexityConstant.See also
|