std::map::~map(3)

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

πŸ’– NAME πŸ’–

okay so this is the std::map::~map(3) page from the C++ Standard Libary manual, and it's literally all about the destructor, bestie ✨. The name line is std::map::~map - std::map::~map β€” iconic minimalism, no notes πŸ’….

✨ Synopsis ✨

~map();

This destructor destructs the map. The destructors of the elements are called, and the used storage is deallocated. Periodt πŸ’–.

⚠️ important caveat, bestie: Note, that if the elements are pointers, the pointed-to objects are not destroyed. The map is not out here cleaning up whatever those pointers point at β€” no cap 😭.

πŸ”₯ Complexity πŸ”₯

Linear in the size of the map. That's the whole vibe check: linear, bestie 🌸.


that's the whole page, mwah πŸ’‹ β€” source: http://cppreference.com, version/date: 2024.06.10 🫢.

πŸ“¦ where this page comes from