std::unique...peratorbool(3)
πΈ NAME πΈ
std::unique_lock::operatorbool β yep, std::unique_lock::operatorbool, bestie. This is the page for std::unique...peratorbool(3) in the C++ Standard Libary, and it's giving βtiny operator, big main-character energy.β π
β¨ Synopsis β¨
explicit operator bool() const noexcept; (since C++11)
Checks whether *this owns a locked mutex or not. Effectively calls owns_lock(). Periodt β that's the whole vibe check. π«Ά
π Parameters π
(none) β not a single parameter, zero, nada. She takes nothing. π
π₯ Return value π₯
true if *this has an associated mutex and has acquired ownership of it, false otherwise. No cap, that's the exact split. β¨
π¦ See also π¦
owns_lockβ tests whether the lock owns (i.e., has locked) its associated mutex (public member function). Iconic sibling behavior, fr fr. π
π cute little sign-off: source/version + date are http://cppreference.com, 2024.06.10, and the page is std::unique...peratorbool(3). Go forth and own that mutex, bestie! π
π
π¦ 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