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).
Parameters
noneReturn value
noneExample
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Output:
Popping out elements... 4 3 2 1 0 |
Complexity
Constant.See also
| stack::push | Add element (public member function) |
| stack::empty | Test whether container is empty (public member function) |
