C++ List pop_front()C++ List pop_front() function removes the first element from the list and therefore, reducing the size of the list by one. ![]() pop_front() function removes the first element i.e 1. SyntaxParameterIt does not contain any parameter. Return valueIt does not return any value. ExampleLet's see a simple example Output: 30,40,50 In this example, pop_front() function removes the first element from the list i.e it removes the element '20' from the list.
Next Topicempty() Function
|