Popfront
Popfront, often written as pop_front, is an operation on a container that removes the first element. Depending on the API, the operation may return the removed element or may discard it; in the latter case, the value may need to be retrieved before the removal.
Common implementations include queues, deques, and linked lists, where pop_front is typically performed in constant time.
Usage examples and behavior vary by language and library. In a typical queue, you may check that
Notes and related concepts: pop_front is often paired with push_front or push_back to model double-ended queues.
See also: push_front, push_back, dequeue, shift, removeFirst.