public member function
<unordered_map>

std::unordered_map::~unordered_map

~unordered_map();
Destroy unordered map
Destructs the container object. This calls each of the contained element's destructors, and dealocates all the storage capacity allocated by the unordered_map container.

Complexity

Linear on unordered_map::size (destructors).

Iterator validity

All iterators, pointers and references are invalidated.