Removes all associations while retaining bucket capacity for reuse.
Releases the table's references to removed entries. A non-empty clear invalidates existing iterators; clearing an already empty map leaves them valid. Previously acquired views become empty.