std::experi...::operator*,(3)
π
std::experi...::operator*,(3) β C++ Standard Libary bestie edition
Okay so bestie, this is the C++ Standard Libary manual page for std::experi...::operator*,(3). Itβs giving niche observer_ptr energy, and yes the title is abbreviated exactly like that. Letβs get into it. β¨
β¨ NAME β¨
Verbatim from the NAME block, duplicate and dash included:
std::experimental::observer_ptr::operator*, -
std::experimental::observer_ptr::operator*,
Thatβs the NAME section. We move. π
πΈ Synopsis πΈ
The signatures, exactly:
constexpr std::add_lvalue_reference_t<element_type> (1)
(library fundamentals
operator*() const; TS v2)
constexpr element_type* operator->() const noexcept; (2)
(library fundamentals
TS v2)
operator* and operator-> provide access to the object watched by *this.
β οΈ Heavy warning, bestie: the behavior ofoperator*is undefined ifget() == nullptr. Like, actual undefined behavior. Do not play with that. ππ
π«Ά Parameters π«Ά
- (none) β literally no parameters, she takes nothing.
π Return value π
- Returns the object watched by
*this, equivalent to*get(). - Returns a pointer to the object watched by
*this, i.e.get().
π₯ Exceptions π₯
- Throws nothing.
π¦ Example π¦
This section is incomplete Reason: no example
π See also π
getβ returns a pointer to the watched object (public member function).
π Category π
- Todo no example
Thatβs the whole page, bestie. Source/version: http://cppreference.com; date: 2024.06.10. Slay, bye. πβ¨
π¦ 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