std::swap(s...shared_lock)(3)
β¨ NAME β¨
okay so bestie, we're in the C++ Standard Libary manual β yes, that's the manual name, keep it β and this page is all about std::swap(std::shared_lock) β literally std::swap(std::shared_lock). That's the name, periodt. π
π¦ Synopsis π¦
template< class Mutex >
void swap( shared_lock<Mutex>& lhs, (since C++14)
shared_lock<Mutex>& rhs ) noexcept;
This is the std::swap algorithm getting its special std::shared_lock treatment β a specialization, lowkey iconic. It exchanges the state of lhs with that of rhs, and effectively calls lhs.swap(rhs). β¨
πΈ Parameters πΈ
lhs,rhsβ lock wrappers whose states to swap. That's it, bestie, those are the whole parameters. π«Ά
π Return value π
(none)β no return value here, fr fr. The function returns nothing. π
π Example π
This section is incomplete.
Reason: no example.
Not me noticing there's literally no example on this page π β that's just what it says. π
π₯ See also π₯
swapβ swaps the data members with anothershared_lock(public member function). Obsessed with a classic, ngl. π
β Category β
- Todo no example β yep, that's the category note. No cap. π
made with π from http://cppreference.com, dated 2024.06.10, for std::swap(s...shared_lock)(3). bye bestie! πβ¨
π¦ 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