std::auto_ptr::reset(3)
π 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms