[#std-shared_lock-0b-2conversion]
= xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared&lowbar;lock&lt;folly::SharedMutexImpl&lt;ReaderPriority, Tag&lowbar;, Atom, Policy&gt;&gt;]::operator bool
:relfileprefix: ../../
:mrdocs:

Reports whether this lock currently owns a shared lock&period;

== Synopsis

Declared in `&lt;folly&sol;SharedMutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
operator bool() const noexcept;
----

== Return Value

`true` if a shared lock is held&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
