std::auto_ptr::release(3)
π NAME π
Okay so welcome to the std::auto_ptr::release page, bestie β and yes, the name is literally std::auto_ptr::release again. We're in the C++ Standard Libary manual, page std::auto_ptr::release(3), and this is the release glow-up. β¨
β¨ Synopsis β¨
T* release() throw(); (deprecated in C++11)
(removed in C++17)
This is the whole vibe. It releases the held pointer, and after the call *this holds the null pointer. π
Heads up: it's deprecated in C++11 and removed in C++17 β iconic but legacy, no cap. π
π Parameters π
Literally none. Zero. Nada. No parameters, bestie. π«Ά
π¦ Return value π¦
It returns get(). That's the whole answer β get(). π
πΈ See also πΈ
resetβ replaces the managed object (public member function). iykyk π¦
Signing off from http://cppreference.com on 2024.06.10, page std::auto_ptr::release(3) β mwah, stay slay, and don't forget your throw() π
π¦ 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