reverse
Syntax:
#include <list> void reverse();
The function reverse() reverses the list, and takes linear time.
Related topics:
#include <list> void reverse();
The function reverse() reverses the list, and takes linear time.