std::shared...k::owns_lock(3)

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

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