Multiset Destructor

multiset:: ~ multiset is used to destroy all the elements of multiset container and deallocates all the storage memory allocated by the multiset container.

Syntax

Example

~multiset();

Parameter

Return value

Complexity

Linear in multiset::size (destructors).

Iterator validity

All iterators, references and pointers are invalidated.

Data Races

The container multiset and all its elements are modified.

Exception Safety

Destructor never throws exceptions.

Input Required

This code uses input(). Please provide values below: