std::shared...peratorbool(3)

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

πŸ’– 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