C++ - Set ~set() Function
The C++ set::~set function is used to destroy the set. The destructors of the elements are called and the used storage is deallocated.
C++98: The set is destroyed and the storage capacity of set is deallocated using its allocator.
Note:: If the elements of the set are pointers, the pointed-to objects are not destroyed.
No parameter is required.
Linear i.e, Θ(n).
Never throws exceptions.
❮ C++ - Set