cppreference.com > C++ Queues
C++ Queues

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

Display all entries for C++ Queues on one page, or view entries individually:

Queue constructorconstruct 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 top element of a queue
pushadds an element to the end of the queue
sizereturns the number of items in the queue