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

Swaps the managed mutex and token with another lock&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:std/shared_lock-0b.adoc[shared&lowbar;lock]& other) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| Lock to swap state with&period;
|===


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