Namespaces
Variants
Actions

std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::~unordered_map

From cppreference.com
 
C++
 
Containers library
 
std::unordered_map
~unordered_map();
(since C++11)
(constexpr since C++26)

Destructs the unordered_map. The destructors of the elements are called and the used storage is deallocated.

[edit] Complexity

Linear in the size of *this.

[edit] Notes

If the elements are pointers, the pointed-to objects are not destroyed.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant