C++ unordered_multimap - ~unordered_multimap() Function
The C++ unordered_multimap::~unordered_multimap function is used to destroy the unordered_multimap. The destructors of the elements are called and the used storage is deallocated.
The allocator_traits::destroy is called on each element of the unordered_multimap and the storage capacity of unordered_multimap is deallocated using its allocator.
Note:: If the elements of the unordered_multimap are pointers, the pointed-to objects are not destroyed.
Syntax
~unordered_multimap();
Parameters
No parameter is required.
Return Value
None.
Time Complexity
Linear i.e, Θ(n).
Exceptions
Never throws exceptions.
❮ C++ <unordered_map> Library