|
deque::pop_backpublic member function
void pop_back ( ); Delete last element Removes the last element in the deque container, effectively reducing the container 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 deque after they are added up in the sum. Output:
ComplexityConstant.See also
|