std::unorde...ed_multiset(3)

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

πŸ’– NAME πŸ’–

Okay bestie, we're in the C++ Standard Library manual, and the star of the show is std::unordered_multiset::~unordered_multiset. The NAME line is exactly:

std::unordered_multiset::~unordered_multiset - std::unordered_multiset::~unordered_multiset

Yes, it's giving "same name twice" main character energy. πŸ’…

✨ Synopsis ✨

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

So this destructor has been around since C++11, periodt. It destructs the unordered_multiset. The destructors of the elements are called and the used storage is deallocated. Lowkey crucial note: if the elements are pointers, the pointed-to objects are not destroyed. πŸ™ˆ

πŸ”₯ Complexity πŸ”₯

Linear in the size of the unordered_multiset. That's the whole vibe check β€” no cap. ⭐


xoxo, stay deallocated πŸ’œ β€” this cutie came from http://cppreference.com, dated 2024.06.10, and it's the std::unorde...ed_multiset(3) page. πŸŽ€

πŸ“¦ where this page comes from