std::experi...ke_observer(3)

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

hey bestie! welcome to the C++ Standard Libary manual β€” this is the std::experimental::make_observer(3) page, and we're gonna make it make sense πŸ’–βœ¨

πŸ’– NAME πŸ’–

std::experimental::make_observer - std::experimental::make_observer

🌸 Synopsis 🌸

okay so this one is defined in this header, no cap:

          Defined in header <experimental/memory>
          template< class W >                                         (library
       fundamentals TS
          std::experimental::observer_ptr<W> make_observer( W* p )    v2)
          noexcept;

It creates an observer_ptr object, and it deduces the template argument from the type of the function argument β€” deduction main character energy πŸ”₯. Also: noexcept.

πŸ¦‹ Parameters πŸ¦‹

  • p β€” pointer to the object to be watched by the observer_ptr object πŸ‘€

✨ Return value ✨

An observer_ptr object, created as if by std::experimental::observer_ptr<W>(p) 🫢✨

πŸŽ€ Example πŸŽ€

This section is incomplete. Reason: no example 😭

Not me leaving you with zero example, but that's literally what the page says. It's incomplete, and the reason is no example.

πŸ’… Category πŸ’…

  • Todo no example

that's the whole page, bestie! 🫢 source: http://cppreference.com Β· version/date: 2024.06.10 Β· footer page: std::experi...ke_observer(3) β€” now go slay some pointers πŸŒˆπŸ’…

πŸ“¦ where this page comes from