std::shared_lock::swap(3)
Hey bestie π welcome to the std::shared_lock::swap(3) page from the C++ Standard Libary manual β yes, that's the manual name exactly as it appears, and we are respecting the lore, no autocorrect energy here β¨
π NAME π
std::shared_lock::swap β std::shared_lock::swap π«Ά
πΈ Synopsis πΈ
β¨ since C++14 β¨
template< class Mutex >
void swap( shared_lock<Mutex>& other ) noexcept;
It exchanges the internal states of the lock objects β that's the whole job, periodt π
π Parameters π
otherβ the lock to swap the state with π¦
π Return value π
(none) β literally nothing comes back, not even a vibe π
π§ Example π§
This section is incomplete Reason: no example
So there's no example to show you today, bestie β the manual said so, not me π
π₯ See also π₯
std::swap(std::shared_lock)β specialization ofstd::swapforshared_lock(C++14) (function template) π
π Category π
- Todo no example π
Catch you later, bestie β this page came from http://cppreference.com and it's dated 2024.06.10. Slay and stay iconic π
β¨π
π¦ 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