[#std-shared_lock-06]
= xref:std.adoc[std]::shared&lowbar;lock&lt;Mutex&gt;
:relfileprefix: ../
:mrdocs:

Deduces `std&colon;&colon;shared&lowbar;lock` when adopting existing lock state&period;

== Synopsis

Declared in `&lt;folly&sol;synchronization&sol;Lock&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Mutex,
    typename S&gt;
shared&lowbar;lock&lt;Mutex&gt;(
    Mutex&,
    xref:folly/adopt_lock_state_t.adoc[folly::adopt&lowbar;lock&lowbar;state&lowbar;t],
    S) -> shared&lowbar;lock&lt;Mutex&gt;;
----


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