stl:list:pop_back

C++ Reference

pop_back

Syntax:

    #include <list>
    void pop_back();

The pop_back() function removes the last element of the list.

pop_back() runs in constant time.

Related Topics: back, erase, pop_front, push_back