Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::queue<T,Container>::pop

Removes an element from the front of the queue. Effectively calls c.pop_front().

Containers
  • C++98
  • C++11
1 min readView on cppreference
NotebookLM
void pop();

Removes an element from the front of the queue. Effectively calls c.pop_front().

Parameters

(none)

Return value

(none)

Complexity

Equal to the complexity of Container::pop_front.

Example

See also

(C++11)
constructs element in-place at the end
(public member function)
inserts element at the end
(public member function)
access the first element
(public member function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.