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

Assignment operators

== Synopses

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

Deleted copy assignment&semi; the lock is not copyable&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:std/shared_lock-0b.adoc[shared&lowbar;lock]&
xref:std/shared_lock-0b/operator_assign-02.adoc[operator&equals;](xref:std/shared_lock-0b.adoc[shared&lowbar;lock] const& other) = delete;
----

[.small]#xref:std/shared_lock-0b/operator_assign-02.adoc[_» more&period;&period;&period;_]#

Move&hyphen;assigns a lock, transferring ownership from another lock&period;


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

[.small]#xref:std/shared_lock-0b/operator_assign-07.adoc[_» more&period;&period;&period;_]#

== Return Value

* Nothing&semi; this operator is deleted&period;
* A reference to this lock&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The lock that would be assigned from&period;
|===


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