# pop_front **Description :** pop_front() function is used to pop or remove elements from a list from the front. The value is removed from the list from the beginning, and the container size is decreased by 1. **Example** : ```cpp // Demonstrates pop_front() #include #include int main(){ //declares an empty list std::listmylist; //appending\inserting elements at the front by push_back mylist.push_back(1); mylist.push_back(4); mylist.push_back(3); //print elements of list std::cout << "List elements are before pop from front \n"; for (auto it = mylist.begin(); it != mylist.end(); ++it){ std::cout << *it << '\n'; } //pop element from the front mylist.pop_front(); //print elements of list std::cout << "List elements are after pop from front \n"; for (auto it = mylist.begin(); it != mylist.end(); ++it){ std::cout << *it << '\n'; } return 0; } ``` **[Run Code](https://rextester.com/GYQ50158)**