std::experi...tr::release(3)

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

πŸ’– NAME πŸ’–

std::experimental::observer_ptr::release - std::experimental::observer_ptr::release

Okay so this is the page for std::experimental::observer_ptr::release β€” yes, the whole name, we are not shortening it, she is iconic. This manual page comes from the C++ Standard Libary manual (keeping that exact spelling, bestie πŸ’…), and the page title is std::experi...tr::release(3). Buckle up. πŸ¦‹


✨ Synopsis ✨

constexpr element_type* release() noexcept;

(library fundamentals TS v2)

This one is lowkey simple: stop watching the watched object, if any. After the call, get() returns nullptr. That's the whole vibe. 🫢


πŸŽ€ Parameters πŸŽ€

(none) β€” literally none. No parameters. Zero. Empty list. You don't pass anything in, bestie. πŸ’–


πŸ¦‹ Return value πŸ¦‹

You get a pointer to the previously watched object, or nullptr if there was no watched object, i.e. the value which would be returned by get() before the call. That's the tea. πŸ’…


😭 Example 😭

This section is incomplete. Reason: no example.

Not me crying because there is literally no example here. The page says it is incomplete for that exact reason, bestie. πŸ“


πŸ”₯ See also πŸ”₯

  • get β€” returns a pointer to the watched object (public member function) πŸ’–
  • reset β€” replaces the watched object (public member function) ✨

🌈 Category 🌈

  • * Todo no example

Source/version/date sign-off: this page is from http://cppreference.com, version/date 2024.06.10, and the title is std::experi...tr::release(3). Stay iconic, bestie β€” bye! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from