[#std-shared_lock-0b-operator_assign-07] = xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>]::operator= :relfileprefix: ../../ :mrdocs: Move‐assigns a lock, transferring ownership from another lock. == Synopsis Declared in `<folly/SharedMutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:std/shared_lock-0b.adoc[shared_lock]& operator=(xref:std/shared_lock-0b.adoc[shared_lock]&& other) noexcept; ---- == Return Value A reference to this lock. == Parameters [cols="1,4"] |=== | Name| Description | *other* | Lock to move from; left owning no mutex. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#