C++ unordered_multiset - ~unordered_multiset() Function
The C++ unordered_multiset::~unordered_multiset function is used to destroy the unordered_multiset. 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_multiset and the storage capacity of unordered_multiset is deallocated using its allocator.
Note:: If the elements of the unordered_multiset are pointers, the pointed-to objects are not destroyed.
Syntax
~unordered_multiset();
Parameters
No parameter is required.
Return Value
None.
Time Complexity
Linear i.e, Θ(n).
Exceptions
Never throws exceptions.
❮ C++ <unordered_set> Library