std::shared...peratorbool(3)
π NAME π
okay bestie, this is the C++ Standard Libary manual page for std::shared_lock::operatorbool β aka the std::shared...peratorbool(3) entry, and yes she is a whole little icon. π
β¨ Synopsis β¨
explicit operator bool() const noexcept;
This one has been around since C++14 β¨ β and it checks whether *this owns a locked mutex or not. Like, it is effectively calling owns_lock() for you, no cap.
π Parameters π
none, bestie π«Ά β this function takes absolutely no arguments.
πΈ Return value πΈ
true if *this has an associated mutex and has acquired shared ownership of it, and false otherwise. Thatβs the whole vibe check. π
π¦ See also π¦
owns_lockβ tests whether the lock owns its associated mutex (public member function). π
mwah π source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::shared...peratorbool(3) β bye bestie, go own those mutexes 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