Javatpoint Logo
Javatpoint Logo

C++ ~set destructor

C++ set destructor is used to destroy all the elements of set container and deallocate all the storage memory allocated by the set container.

Syntax

Parameter

None

Return value

None

Complexity

Linear in set::size (destructors).

Iterator validity

All iterators, references and pointers are invalidated.

Data Races

The container set and all its elements are modified.

Exception Safety

This function never throws exceptions.







Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA