Clears a list by removing all elements.
void clear();
The list class provides for operations to manipulate the list.