std::experi...server_ptr)(3)

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

okay bestie, this is the manual page for std::experi...server_ptr)(3), and it lives in the C++ Standard Libary manual πŸ’…βœ¨ (yes, that's the manual name exactly, typo and all, no cap).


🌸 NAME 🌸

  • std::experimental::swap(std::experimental::observer_ptr) β€” the name, iconic πŸ’–
  • std::experimental::swap(std::experimental::observer_ptr) β€” and here it is again, listed twice because the original does that, periodt 🫢

✨ Synopsis ✨

template< class W >
void swap( observer_ptr<W>& lhs, observer_ptr<W>& rhs ) noexcept;

The page also has (library fundamentals TS v2) noted right there, bestie ✨

Okay so this specializes the swap algorithm for std::experimental::observer_ptr πŸ”₯. It swaps the pointers of lhs and rhs. It calls lhs.swap(rhs) πŸ’….

πŸŽ€ Parameters πŸŽ€

  • lhs, rhs β€” observer_ptrs whose contents to swap 🌸

πŸ’– Return value πŸ’–

(none) β€” literally no return value, bestie πŸ™ˆ

🧚 Complexity 🧚

Constant. ⚑

πŸ‘‘ See also πŸ‘‘

  • swap β€” swaps the values of two objects (function template) πŸ”₯
  • swap β€” swaps the watched objects (public member function) πŸ‘‘

that's the whole page, bestie πŸ«ΆπŸ’– β€” source: http://cppreference.com, version/date: 2024.06.10 ✨

πŸ“¦ where this page comes from