std::experi...er_ptr::get(3)

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to the std::experimental::observer_ptr::get page from the C++ Standard Libary manual (yes, that’s how it’s spelled up top, no cap πŸ’€). The title got chopped into std::experi...er_ptr::get(3), which is giving truncated-icon energy, but the actual star of the show is:

std::experimental::observer_ptr::get β€” std::experimental::observer_ptr::get


✨ Synopsis ✨

constexpr element_type* get() const noexcept;  (library fundamentals TS v2)

It returns a pointer to the watched object, or nullptr if no object is watched. That’s the whole vibe 🫢.


πŸŽ€ Parameters πŸŽ€

There are literally no parameters, bestie: (none). Not a single one. Clean. Minimal. Iconic πŸ’….


πŸ¦‹ Return value πŸ¦‹

A pointer to the watched object, or nullptr if no object is watched. Periodt ✨.


🌸 Example 🌸

This section is incomplete. Reason: no example 😭.

It’s giving β€œtodo no example” and honestly same.

πŸ’œ See also πŸ’œ

  • release returns a pointer to the watched object and stops watching the object (public member function) πŸ‘‘

🌈 Category 🌈

  • Todo no example

mwah πŸ’‹ β€” source: http://cppreference.com, version/date: 2024.06.10 πŸŽ€βœ¨

πŸ“¦ where this page comes from