push_front

Syntax:

    #include <list>
    void push_front( const TYPE& val );

The push_front() function inserts val at the beginning of list.

push_front() runs in constant time.

Related Topics: assign, front, insert, pop_front, push_back