##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::forward_list::pop_front

From cppreference.com
< cpp‎ | container‎ | forward list

[edit template]

void pop_front(); |  | (since C++11)

Removes the first element of the container.

References and iterators to the erased element are invalidated.

### [edit] Parameters

(none)

### [edit] Return value

(none)

### [edit] Complexity

Constant.

### [edit] See also

push_front | inserts elements to the beginning (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/forward_list/pop_front&oldid=50505"