[#std-shared_lock-0b-2conversion] = xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>]::operator bool :relfileprefix: ../../ :mrdocs: Reports whether this lock currently owns a shared lock. == Synopsis Declared in `<folly/SharedMutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit operator bool() const noexcept; ---- == Return Value `true` if a shared lock is held. [.small]#Created with https://www.mrdocs.com[MrDocs]#