multiset:: ~ The multiset container is employed to erase all of its elements and release all the allocated memory space.
Syntax
Example
~multiset();
Parameter
Return value
Complexity
Linear in multiset::size (destructors).
Iterator validity
All iterators, references, and pointers become invalid.
Data Races
The container multiset and its contents are altered.
Exception Safety
Destructor never throws exceptions.