std::experi...ement_type*(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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