std::experi...er_ptr::swap(3)
π 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::swapstd::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β anotherobserver_ptrobject 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms