front [C++ Reference]
Keywords: stl,list,front
Date: 2008-10-14T15:42:06-0700

[[front]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## 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

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •