std::unorde...ordered_map(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 NAME 🌸

std::unordered_map::~unordered_map - std::unordered_map::~unordered_map β€” that's the whole name, bestie, no notes. It's the destructor page from the C++ Standard Libary manual, page std::unorde...ordered_map(3). (yes, "Libary" with one r β€” iconic, we keep it πŸ’€) It's giving "I clean up after everyone" main character energy, honestly. πŸ‘‘

πŸŽ€ Synopsis πŸŽ€

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

Since C++11, so it's not new new, but it's still iconic. ✨

πŸ’… Complexity πŸ’…

Linear in the size of the unordered_map β€” so it scales with how many elements you've got in there. No cap, no shortcuts, periodt. πŸ”₯


So what does it do? It destructs the unordered_map. The destructors of the elements are called, and the used storage is deallocated. But bestie, hear me: Note, that if the elements are pointers, the pointed-to objects are not destroyed. They're not touched. They're living their best life elsewhere. πŸ™ˆπŸ’…


source/version: http://cppreference.com β€’ date: 2024.06.10 β€’ page: std::unorde...ordered_map(3) β€” that's the whole tea, bestie, slay πŸ’–βœ¨

πŸ“¦ where this page comes from