[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/thread/unique_lock/operator_bool [Back]  [Original]

std::unique_lock::operator bool cppreference.com
cppreference.com

std::unique_lock::operator bool

cppreference.com

<metanoindex/>

 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
(C++11)
(C++20)
(C++20)
this_thread
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++11)( C++20)
(C++11)( C++20)
(C++11)( C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
 
 
<tbody> </tbody>
explicit operator bool() const;
( C++11)
, *this . owns_lock().
:
Checks whether *this owns a locked mutex or not. Effectively calls owns_lock().
Google.
. .

()

true *this , false .
:
true if *this has an associated mutex and has acquired ownership of it, false otherwise.
Google.
. .

noexcept:  
noexcept
  

.

:
tests whether the lock owns its associated mutex
Google.
. .

(public -) []

Web Proxy Viewer  |  New URL  |  Original Page