std::experi...server_ptr)(3)
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_ptrswhose 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
- 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