##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::queue::pop

From cppreference.com
< cpp‎ | container‎ | queue

[edit template]

void pop(); |  | (since {std})

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

### [edit] Parameters

(none)

### [edit] Return value

(none)

### [edit] Complexity

Equal to the complexity of Container::pop_front.

### [edit] See also

emplace (C++11) | constructs element in-place at the end (public member function) [edit]
push | inserts element at the end (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/queue/pop&oldid=50636"