std::deque<T,Allocator>::pop_front

Removes the first element of the container. If there are no elements in the container, the behavior is undefined.

# Declarations

void pop_front();

# Return value

(none)

# Example

#include <deque>
#include <iostream>
 
int main()
{
    std::deque<char> chars{'A', 'B', 'C', 'D'};
 
    for (; !chars.empty(); chars.pop_front())
        std::cout << "chars.front(): '" << chars.front() << "'\n";
}

# See also