std::auto_p...:operator->(3)
π
std::auto_p...:operator->(3) π
okay so bestie, buckle up: this is the std::auto_p...:operator->(3) page from the C++ Standard Libary manual. Yes, that's the manual name, spelling and all β we don't edit the source, we just vibe with it. π«Ά This page is all about std::auto_ptr's operator* and operator->, two little dereference icons that are deprecated in C++11 and removed in C++17. π
πΈ NAME πΈ
The NAME section gives us this exact duo: std::auto_ptr::operator*,std::auto_ptr::operator->, and then says the same thing again: std::auto_ptr::operator*,std::auto_ptr::operator->. That's it, that's the name. No extra lore, no hidden meaning. π
β¨ Synopsis β¨
T& operator*() const throw(); (1) (deprecated in C++11)
(removed in C++17)
T* operator->() const throw(); (2) (deprecated in C++11)
(removed in C++17)
So both of these dereference a pointer to the managed object. The first version β operator*() β has a requirement: get() != 0. Do not ignore that, bestie; it's literally in the text. π¨
Both overloads are deprecated in C++11 and removed in C++17. That's a big deal, bestie β treat this as an old-school page. π
π Parameters π
No parameters, bestie. Zero. (none). Not a single argument is passed here. π
π Return value π
*get().get().
Version (1) gives you *get(), and version (2) gives you get(). That's the whole return-value tea. π΅
π¦ See also π¦
getβ returns a pointer to the managed object (public member function).
And that's the page, bestie. Cute sign-off time: this came from http://cppreference.com, the version/date situation is 2024.06.10, and the page is std::auto_p...:operator->(3). Stay slay, and may your dereferences always pass the get() != 0 vibe check. πβ¨π
π¦ 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