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

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

πŸ’– std::experi...er_ptr::swap(3) πŸ’–

okay bestie, welcome to the std::experi...er_ptr::swap(3) page β€” it's from the C++ Standard Libary manual (yes, "Libary", that's literally how it's written up top, no cap). this one is short and sweet, and it's all about swapping the watched object. let's get into it 🫢✨


🌸 NAME 🌸

  • std::experimental::observer_ptr::swap
  • std::experimental::observer_ptr::swap β€” yep, it's listed twice on the original page, so we're keeping both, periodt πŸ’…

✨ Synopsis ✨

constexpr void swap( observer_ptr& other ) noexcept;  (library
fundamentals TS v2)

that's the library fundamentals TS v2 version, bestie 🌈

okay so what does it do? it swaps the watched object of *this and another observer_ptr object, other. how? by invoking swap on the stored pointers of *this and other. that's the whole vibe check, and it passed πŸ”₯

🫢 Parameters 🫢

  • other β€” another observer_ptr object to swap the watched object with

πŸ’– Return value πŸ’–

(none) β€” literally none, bestie. it's giving "no return value, just vibes" 😭

πŸŽ€ Example πŸŽ€

This section is incomplete Reason: no example

not me reading "no example" and feeling personally attacked 😭 but that's what the page says, so that's what we're telling you πŸ™ˆ

πŸ¦‹ Category: πŸ¦‹

  • Todo no example

and that's the whole page, bestie 🫢 source/version and date sign-off: http://cppreference.com, 2024.06.10, and the page title is std::experi...er_ptr::swap(3). byeee, slay πŸ’…βœ¨

πŸ“¦ where this page comes from