vector::clear

vector::clear

void clear() const;

The member function calls erase( begin(), end()).