list::clear
void
clear
() const;
The member function calls
erase
(
begin
(),
end
())
.