std::unorde...ed_multiset(3)
π 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms