This calls the removed element's destructor.
This member function effectively calls the member function pop_front of the underlying container object.
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 24 25 26 |
|
The example uses push to add a new elements to the queue, which are then popped out in the same order.
Complexity
Constant.See also
| queue::push | Insert element (public member function) |
| queue::empty | Test whether container is empty (public member function) |
