std::auto_ptr::reset(3)

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

πŸ’– NAME

Okay so this is std::auto_ptr::reset(3), bestie β€” straight from the C++ Standard Libary manual (yes, that spelling is in the source, no cap). The listing is std::auto_ptr::reset - std::auto_ptr::reset, which is literally the name doing the absolute most πŸ’….

✨ Synopsis ✨

void reset( T* p = 0 ) throw();  (deprecated in C++11)
                                 (removed in C++17)

Replaces the held pointer by p. If the currently held pointer is not null pointer, delete get() is called.

It's giving deprecated in C++11 and removed in C++17 β€” the signature itself is tagged, so this is a whole historical moment πŸ’€βœ¨

🌸 Parameters 🌸

  • p β€” a pointer to an object to manage

πŸŽ€ Return value πŸŽ€

(none) β€” literally no return value, bestie. The docs say (none), and I'm not gonna invent one 🫢.

πŸ‘€ See also πŸ‘€

  • release β€” releases ownership of the managed object (public member function)

That's the whole vibe! Source: http://cppreference.com; version/date: 2024.06.10. Bye bestie πŸ’…βœ¨

πŸ“¦ where this page comes from