stl:queue:start

C++ Reference

C++ Queues

The C++ Queue is a container adapter that gives the programmer a FIFO (first- in, first-out) data structure.

Constructorsconstruct a new queue
backreturns a reference to last element of a queue
emptytrue if the queue has no elements
frontreturns a reference to the first element of a queue
popremoves the first element of a queue
pushadds an element to the end of the queue
sizereturns the number of items in the queue