list pop_front() function in C++ STL
The list::pop_front() is a built-in function in C++ STL which is used to remove an element from the front of a list container. This function thus decreases the size of the container by 1 as it deletes the element from the front of a list.
Parameters: The function does not accept any parameter.
Return Value: This function does not returns anything.
Below program illustrate the list::pop_front() function in C++ STL:
Initial List: 10 20 30 40 List after removing an element from front: 20 30 40