push_front

C/C++ Reference

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: