std::auto_ptr::get(3)

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

okay so bestie, welcome to the std::auto_ptr::get(3) page from the C++ Standard Libary β€” manual-name moment secured, now let’s get into it πŸ’…βœ¨

πŸ’– NAME πŸ’–

  • std::auto_ptr::get β€” literally std::auto_ptr::get, no notes πŸŽ€

✨ Synopsis ✨

T* get() const throw();  (deprecated in C++11)
                         (removed in C++17)

Translation: it returns the pointer that is held by *this. And bestie, listen: this thing is marked deprecated in C++11 and removed in C++17 β€” the code block says it, so don’t act surprised 😭

πŸ¦‹ Parameters πŸ¦‹

  • (none) β€” zero parameters, not a single one, we love a no-arg moment 🫢

🌸 Return value 🌸

  • The pointer held by *this. β€” that’s the whole return vibe, periodt πŸ’œ

πŸ‘‘ See also πŸ‘‘

  • operator* β€” accesses the managed object
  • operator-> β€” (public member function)

mwah πŸ’‹ this page’s footer energy is source/version http://cppreference.com and date 2024.06.10 β€” iconic, no cap πŸŽ€

πŸ“¦ where this page comes from