std::queue::~queue(3)
std::queue::~queue(3) π
okay so this page is from the C++ Standard Libary manual, and it's all about std::queue::~queue β the goodbye era for a queue. bestie, it's literally the destructor, and she's here to clean up. π
β¨ NAME β¨
std::queue::~queueβstd::queue::~queue(yes, the name and the description are literally the same thing, and honestly? iconic. no notes. π)
π¦ Synopsis π¦
~queue();
so ~queue(); is the destructor, and she destructs the queue. the destructors of the elements are called, and the used storage is deallocated. that's the whole vibe. π«Ά
bestie pls note: if the elements are pointers, the pointed-to objects are not destroyed. not even a little. no cap. π
πΈ Complexity πΈ
vibe check: linear in the size of the queue. that's it, that's the complexity. periodt. π
okay that's the whole page, bye bestie π«Ά β source/version: http://cppreference.com, date: 2024.06.10, manual page: std::queue::~queue(3) β¨
π¦ 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