std::experi...:operator->(3)
β¨ NAME β¨
okay so bestie, welcome to the std::experi...:operator->(3) page from the C++ Standard Libary manual π. Official NAME lineup: std::experimental::shared_ptr::operator*,std::experimental::shared_ptr::operator-> β and yes, the original repeats it after the dash too: std::experimental::shared_ptr::operator*,std::experimental::shared_ptr::operator-> - std::experimental::shared_ptr::operator*,std::experimental::shared_ptr::operator->. We're keeping every name, no cap.
This page covers both:
std::experimental::shared_ptr::operator*std::experimental::shared_ptr::operator->
It's giving two-for-one icon behavior β¨.
πΈ Synopsis πΈ
T& operator*() const noexcept; (1) (library fundamentals TS)
T* operator->() const noexcept; (2) (library fundamentals TS)
Both of these dereference the stored pointer. The behavior is undefined if the stored pointer is null β like, do not do that, bestie, that's the dangerous part π.
π Parameters π
(none) β she takes literally zero parameters, periodt π
.
π Return value π
- Function (1) gives you the result of dereferencing the stored pointer, i.e.,
*get(). - Function (2) gives you the stored pointer, i.e.,
get().
β¨ Remarks β¨
- When
Tis an array type or (possibly cv-qualified)void, it is unspecified whether function (1) is declared. - When
Tis an array type, it is unspecified whether function (2) is declared. - In either case, if the function is declared, it is unspecified what its return type is, except that the declaration (although not necessarily the definition) of the function is guaranteed to be legal.
π¦ Example π¦
This section is incomplete.
Reason: no example.
not me showing up with an empty example section π but that's literally what it says, so we move.
π See also π
getreturns the stored pointer (public member function).
π Categories π
- Noindexed pages
- Todo no example
source: http://cppreference.com Β· version/date: 2024.06.10 β kisses, bestie, that's the official footer tea π«Άπ
π¦ 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