std::multimap::~multimap(3)

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

πŸ’– NAME πŸ’–

Bestie, welcome to the std::multimap::~multimap(3) page from the C++ Standard Libary manual. The name line is literally std::multimap::~multimap - std::multimap::~multimap β€” yes, it’s the destructor page for the destructor, and that’s iconic. πŸ’…

✨ Synopsis ✨

~multimap();

Okay so this destructs the multimap. The destructors of the elements are called, and the used storage is deallocated. 🫢

Big caveat, bestie: if the elements are pointers, the pointed-to objects are not destroyed. Not me warning you so you don’t leak your faves 😭

🌸 Complexity 🌸

Linear in the size of the multimap. No cap.


Source/site: http://cppreference.com Β· date: 2024.06.10 Β· bye bestie, go destroy responsibly πŸŽ€πŸ’–

πŸ“¦ where this page comes from