std::experi...:operator*,(3)
okay so bestie, welcome to std::experi...:operator*,(3) from the C++ Standard Libary manual β¨ β yes, thatβs the manual name right up top, and weβre folding it in here so you donβt have to squint at the header line π
. This page is all about the std::experimental::propagate_const operators for dereferencing and arrow access, and it is short but highkey important π«Ά.
πΈ NAME πΈ
The NAME entry is literally this, comma and all:
std::experimental::propagate_const::operator*, -
std::experimental::propagate_const::operator*,
No cap, we are keeping the whole thing exactly as it appears π.
β¨ SYNOPSIS β¨
Here are the four overloads, and yes, every one of them is tagged library fundamentals TS v2 π§:
constexpr element_type& operator*();β(1) (library fundamentals TS v2)constexpr const element_type& operator*() const;β(2) (library fundamentals TS v2)constexpr element_type* operator->();β(3) (library fundamentals TS v2)constexpr const element_type* operator->() const;β(4) (library fundamentals TS v2)
These functions provide access to the object pointed to by the pointer-like object *this wraps π.
π¨ undefined behavior alert: the behavior of these functions is undefined if get() == nullptr. Like, that is not a vibe, bestie β do not do it ππ.
π PARAMETERS π
(none)β literally none, bestie, itβs giving βno arguments neededβ π .
π¦ RETURN VALUE π¦
- 1,2) The object pointed to by the wrapped pointer-like object, i.e.,
*get()π - 3,4) A pointer to the object pointed to by the wrapped pointer-like object, i.e.,
get()β
π EXAMPLE π
This section is incomplete Reason: no example
Itβs literally giving βno example yetβ π β thatβs what the page says, and we are not inventing one, periodt.
π SEE ALSO π
getβ returns a pointer to the object pointed to by the wrapped pointer (public member function) π
π·οΈ CATEGORY π·οΈ
Category: * Todo no example
mwah π thatβs the whole page, bestie. Source/version and date from the footer: http://cppreference.com and 2024.06.10, with the title still being std::experi...:operator*,(3) πβ¨. Now go forth and access your wrapped object responsibly π«Άπ
π¦ 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