[#Sock-operator_assign-0e]
= xref:Sock.adoc[Sock]::operator&equals;
:relfileprefix: ../
:mrdocs:

Assignment operators

== Synopses

Declared in `&lt;util&sol;sock&period;h&gt;`

Copy assignment operator, disabled because closing the same socket twice is undesirable&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:Sock.adoc[Sock]&
xref:Sock/operator_assign-00.adoc[operator&equals;](xref:Sock.adoc[Sock] const& other) = delete;
----

[.small]#xref:Sock/operator_assign-00.adoc[_» more&period;&period;&period;_]#

Move assignment operator, grab the socket from another object and close ours (if set)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:Sock.adoc[Sock]&
xref:Sock/operator_assign-0b.adoc[operator&equals;](xref:Sock.adoc[Sock]&& other);
----

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

== Return Value

Reference to this object&period;

== Parameters

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


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