std::shared_lock::swap(3)

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

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 of std::swap for shared_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