[#std-shared_lock-0b-operator_assign-06] = xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared_lock<folly::SharedMutexImpl<ReaderPriority, Tag_, Atom, Policy>>]::operator= :relfileprefix: ../../ :mrdocs: Assignment operators == Synopses Declared in `<folly/SharedMutex.h>` Deleted copy assignment; the lock is not copyable. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:std/shared_lock-0b.adoc[shared_lock]& xref:std/shared_lock-0b/operator_assign-02.adoc[operator=](xref:std/shared_lock-0b.adoc[shared_lock] const& other) = delete; ---- [.small]#xref:std/shared_lock-0b/operator_assign-02.adoc[_» more..._]# Move‐assigns a lock, transferring ownership from another lock. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:std/shared_lock-0b.adoc[shared_lock]& xref:std/shared_lock-0b/operator_assign-07.adoc[operator=](xref:std/shared_lock-0b.adoc[shared_lock]&& other) noexcept; ---- [.small]#xref:std/shared_lock-0b/operator_assign-07.adoc[_» more..._]# == Return Value * Nothing; this operator is deleted. * A reference to this lock. == Parameters [cols="1,4"] |=== | Name| Description | *other* | The lock that would be assigned from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#