std::auto_ptr::~auto_ptr(3)

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

πŸ’– std::auto_ptr::~auto_ptr(3) πŸ’–

okay bestie, welcome to the std::auto_ptr::~auto_ptr page from the C++ Standard Libary manual ✨ yes, that spelling is exactly what the page says, iykyk.

πŸ’– NAME πŸ’–

std::auto_ptr::~auto_ptr β€” std::auto_ptr::~auto_ptr (the name is giving β€œI am literally the destructor,” periodt πŸ’…)

✨ Synopsis ✨

~auto_ptr() throw();  (deprecated in C++11)
                      (removed in C++17)

so this destructor destroys the managed object. that’s it, that’s the whole plot. it calls delete get() β€” no cap, that exact call. 🫢

heads up bestie: it’s deprecated in C++11 and removed in C++17. the page says so directly, so don’t act surprised when modern C++ side-eyes it 😭

mwah πŸ’‹ β€” page source: http://cppreference.com, dated 2024.06.10 πŸŽ€

πŸ“¦ where this page comes from