std::shared_lock::operator bool
STD::共享[医]锁::操作员bool
explicit operator bool() const; | | (since C++14) |
---|
检查是否*this
是否拥有一个锁定的互斥体。有效呼叫owns_lock()
...
参数
%280%29
返回值
true
如果*this
拥有一个关联的互斥体,并拥有它的共享所有权,false
否则。
例外
noexcept
规格:
noexcept
另见
owns_lock | tests whether the lock owns its associated mutex (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。