std::shared...k::operator=(3)
π NAME π
Welcome to std::shared...k::operator=(3) from the C++ Standard Libary β yes bestie, that's the manual name, spelling and all π we're deep in shared_lock assignment-operator territory π
std::shared_lock::operator=β it's literallystd::shared_lock::operator=π no notes, that's the whole name.
π¦ Synopsis π¦
shared_lock& operator=( shared_lock&& other ) noexcept; (since C++14)
Okay so this is the move assignment operator β¨ it replaces the contents with those of other using move semantics. Periodt.
If, prior to this call, *this has an associated mutex (mutex() returns a non-null pointer) and has acquired ownership of it (owns() returns true), the mutex is unlocked by calling unlock_shared() π
After this call, other has no associated mutex. Not a single one. Gone. π¨
πΈ Parameters πΈ
otherβ anothershared_lockto replace the state with π«Ά
β Return value β
*this β that's the return value, bestie π
This iconic lil page came from http://cppreference.com, dated 2024.06.10, and the manual title is std::shared...k::operator=(3) πβ¨ bye bestie, go move-assign responsibly π§π
π¦ 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