std::multiset::~multiset(3)

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

πŸ’… std::multiset::~multiset(3) πŸ’…

okay bestie, welcome to the std::multiset destructor page from the C++ Standard Libary manual β€” yes, that’s the manual name, typo and all, and we are literally about to get into it. This is the cleanup era for your multiset, periodt. πŸŽ€

🌸 NAME 🌸

std::multiset::~multiset β€” the destructor for std::multiset. It’s giving β€œbye bestie, time to free the storage.” πŸ’–

✨ Synopsis ✨

~multiset();

So what does it do? It destructs the multiset. The destructors of the elements are called, and the used storage is deallocated. Slay. πŸ’…

⚠️ Big note, bestie: if the elements are pointers, the pointed-to objects are not destroyed. The multiset is not out here chasing your pointers and cleaning up their targets, no cap. πŸ™ˆ

πŸ”₯ Complexity πŸ”₯

Linear in the size of the multiset. So it scales with how many elements are in there, fr fr. πŸ¦‹


mwah πŸ’‹ β€” this cutie came from http://cppreference.com, dated 2024.06.10. 🫢✨

πŸ“¦ where this page comes from