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

> C++ Atlas: `cppatlas.com/w/cpp/container/queue/pop` | Source: https://en.cppreference.com/w/cpp/container/queue/pop | Domain: Containers | Standards: C++98, C++11

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

## Official Specification Summary (cppreference)

```cpp
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

- [`emplace`](https://en.cppreference.com/w/cpp/container/queue/emplace) (C++11): constructs element in-place at the end (public member function)
- [`push`](https://en.cppreference.com/w/cpp/container/queue/push): inserts element at the end (public member function)
- [`front`](https://en.cppreference.com/w/cpp/container/queue/front): access the first element (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/container/queue/pop (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.