|
list::pop_backpublic member function
void pop_back ( ); Delete last element Removes the last element in the list container, effectively reducing the list size by one.This calls the removed element's destructor. ParametersnoneReturn valuenoneExample
In this example, the elements are popped out from the end of the list after they are added up in the sum. Output:
ComplexityConstant.See also
|