This calls the removed element's destructor.
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 22 23 |
|
In this example, the elements are popped out from the end of the deque after they are added up in the sum. Output:
The elements of mydeque summed 60 |
Complexity
Constant.See also
| deque::pop_front | Delete first element (public member function) |
| deque::push_back | Add element at the end (public member function) |
| deque::erase | Erase elements (public member function) |
