std::experi...ement_type*(3)
π std::experi...ement_type*(3) π
okay so real talk, the manual name for this one is C++ Standard Libary β yes that's their typo, not mine, I'm just being faithful π
. And the page itself is named std::experimental::observer_ptr::operatorelement_type* β the NAME section literally says it twice because it's that iconic, we love a double announcement β¨.
πΈ NAME πΈ
std::experimental::observer_ptr::operatorelement_type* β and yeah, it's listed again as std::experimental::observer_ptr::operatorelement_type*. Two for the price of one, bestie, slay π
π¦ SYNOPSIS π¦
constexpr explicit operator element_type*() const noexcept;
(library fundamentals TS v2) β that's the version tag, don't come for me π«Ά
So what does it do? It provides an explicit conversion to the type of the stored pointer. That's it. That's the whole vibe. Lowkey elegant, ngl πβ¨
π PARAMETERS π
- (none) β literally nothing. empty. void. she takes no arguments and she doesn't need to π§
β RETURN VALUE β
A pointer to the watched object β i.e., get(). Same energy, different entrance π. It's literally just get() in a little conversion-operator costume, and honestly? Respect ππ
π EXAMPLE π
This section is incomplete Reason: no example
not me showing up to the function with no example... π the docs say incomplete and that's on that, I'm not out here inventing code for you, bestie β no cap, I will not make things up π
π₯ SEE ALSO π₯
getβ returns a pointer to the watched object (public member function) π β yeah, the exact same thing this operator gives you, iykyk π¦
π CATEGORY π
- * Todo no example β the official paperwork also says "no example." It's giving consistent messaging, at least π β¨
And that's the page!! π Don't forget to check in on the get bestie. This gem is from http://cppreference.com, dated 2024.06.10, and the manual's own version line is std::experi...ement_type*(3) β same as it ever was ππ 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