std::shared...k::owns_lock(3)
okay bestie, welcome to std::shared...k::owns_lock(3) β that's the page header β and it lives in the C++ Standard Libary manual (yes, βLibary,β weβre keeping it exactly as written π
).
π NAME π
std::shared_lock::owns_lock - std::shared_lock::owns_lock
β¨ Synopsis β¨
bool owns_lock() const noexcept; (since C++14)
Checks whether *this owns a locked mutex or not. Thatβs the whole vibe check, no cap.
π Parameters π
(none)
π«Ά Return value π«Ά
true if *this has an associated mutex and has acquired shared ownership of it, false otherwise.
π See also π
operator boolβ tests whether the lock owns its associated mutex (public member function)
mwah π this iconic page is from http://cppreference.com, stamped 2024.06.10, with footer title std::shared...k::owns_lock(3). periodt. π
π¦ 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