Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/unordered set/~unordered set"

From cppreference.com
m (Shorten template names. Use {{lc}} where appropriate.)
m (langlinks)
 
Line 1: Line 1:
 
{{include page|cpp/container/destructor|unordered_set}}
 
{{include page|cpp/container/destructor|unordered_set}}
  
[[de:cpp/container/unordered set/~unordered set]]
+
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}
[[es:cpp/container/unordered set/~unordered set]]
+
[[fr:cpp/container/unordered set/~unordered set]]
+
[[it:cpp/container/unordered set/~unordered set]]
+
[[ja:cpp/container/unordered set/~unordered set]]
+
[[pt:cpp/container/unordered set/~unordered set]]
+
[[ru:cpp/container/unordered set/~unordered set]]
+
[[zh:cpp/container/unordered set/~unordered set]]
+

Latest revision as of 05:08, 12 January 2021

 
 
 
 
~unordered_set();
(since C++11)

A destructor. Destructs the unordered_set. The destructors of the elements are called and the used storage is deallocated. Note, that if the elements are pointers, the pointed-to objects are not destroyed.

[edit] Complexity

Linear in the size of the unordered_set.