cppreference.com > C++ Lists > reverse
reverse
Syntax:
  #include <list>
  void reverse();

The function reverse() reverses the list, and takes linear time.