std::auto_p...atorauto_ptr(3)
π std::auto_p...atorauto_ptr(3) π
okay so bestie, we're in the C++ Standard Libary manual, and the page is std::auto_p...atorauto_ptr(3). yes, that's the whole title vibe β highkey iconic, slightly cursed, we love her. π«Ά
β¨ NAME β¨
std::auto_ptr::operatorauto_ptr β std::auto_ptr::operatorauto_ptr. that's it, that's the name, no notes. π
πΈ Synopsis πΈ
template< class Y > (1) (deprecated in C++11)
operator auto_ptr_ref<Y>() throw(); (removed in C++17)
template< class Y > (2) (deprecated in C++11)
operator auto_ptr<Y>() throw(); (removed in C++17)
Converts *this to an auto_ptr for a different type Y. π¦
(1)β returns an implementation-defined type that holds a reference to*this.std::auto_ptris convertible and assignable from this template. The implementation is allowed to provide the template with a different name or implement equivalent functionality in other ways. π(2)β constructs a newauto_ptrwith a pointer obtained by callingrelease(). π₯
π Parameters π
(none) β literally zero parameters, bestie, not a one. π
π¦ Return value π¦
- An implementation-defined type that holds a reference to
*this. β¨ - An
auto_ptrwith a pointer obtained by callingrelease(). π₯
π Notes π
The constructor and the copy assignment operator from auto_ptr_ref is provided to allow copy-constructing and assigning std::auto_ptr from nameless temporaries. Since its copy constructor and copy assignment operator take the argument as non-const reference, they cannot bind rvalue arguments directly. However, a user-defined conversion (1) or (2) can be executed (which releases the original auto_ptr), followed by a call to the constructor or copy-assignment operator that take auto_ptr_ref by value. This is an early implementation of move semantics. π§β¨ no cap, slay.
mwah π this page is from http://cppreference.com, dated 2024.06.10, and it's literally std::auto_p...atorauto_ptr(3). periodt. π«Ά
π¦ 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