[#std-shared_lock-0b-swap] = xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>]::swap :relfileprefix: ../../ :mrdocs: Swaps the managed mutex and token with another lock. == Synopsis Declared in `<folly/SharedMutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:std/shared_lock-0b.adoc[shared_lock]& other) noexcept; ---- == Parameters [cols="1,4"] |=== | Name| Description | *other* | Lock to swap state with. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#