stl:list:front

C++ Reference

front

Syntax:

    #include <list>
    TYPE& front();
    const TYPE& front() const;

The front() function returns a reference to the first element of the list, and runs in constant time.

Related Topics: back, pop_front, push_front