dequeue
Dequeue (also spelled dequeue) has two related meanings in computer science. The verb refers to removing and returning the element at the front of a queue. The noun deque (short for double-ended queue) is a data structure that supports insertion and removal at both ends.
In a deque, common operations include push_front (or addFirst), push_back (or addLast), pop_front (or removeFirst), and
Compared with a standard queue, which enqueues at the back and dequeues from the front, a deque
Applications include algorithms requiring access to either end, such as breadth-first search with a double-ended frontier,
See also: queue, stack, linked list, circular buffer, priority queue.