std::queue::~queue(3)

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

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