std::experi..._ptr::reset(3)

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

✨ std::experimental::observer_ptr::reset πŸ’…

okay so bestie, welcome to the C++ Standard Libary page for std::experi..._ptr::reset(3) β€” yes, that truncated title is literally in the header, and we are keeping the vibe immaculate 🫢


🌸 NAME 🌸

std::experimental::observer_ptr::reset β€” and yep, it’s std::experimental::observer_ptr::reset again. iconic, no notes πŸ’–

πŸ¦‹ Synopsis πŸ¦‹

          constexpr void reset( element_type* p = nullptr )       (library
       fundamentals TS v2)
          noexcept;

Set *this to watch the object pointed to by p. get() returns p after the call.

πŸŽ€ Parameters πŸŽ€

  • ptr β€” pointer to a new object to watch

πŸ“ Example πŸ“

This section is incomplete Reason: no example

πŸ‘‘ See also πŸ‘‘

  • release β€” returns a pointer to the watched object and stops watching the object (public member function)

πŸ’€ Category πŸ’€

  • Todo no example

mwah πŸ’‹ this page is served from http://cppreference.com and dated 2024.06.10 β€” source/version notes and date, periodt 🌈

πŸ“¦ where this page comes from