[#Sock-operator_assign-0e] = xref:Sock.adoc[Sock]::operator= :relfileprefix: ../ :mrdocs: Assignment operators == Synopses Declared in `<util/sock.h>` Copy assignment operator, disabled because closing the same socket twice is undesirable. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:Sock.adoc[Sock]& xref:Sock/operator_assign-00.adoc[operator=](xref:Sock.adoc[Sock] const& other) = delete; ---- [.small]#xref:Sock/operator_assign-00.adoc[_» more..._]# Move assignment operator, grab the socket from another object and close ours (if set). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:Sock.adoc[Sock]& xref:Sock/operator_assign-0b.adoc[operator=](xref:Sock.adoc[Sock]&& other); ---- [.small]#xref:Sock/operator_assign-0b.adoc[_» more..._]# == Return Value Reference to this object. == Parameters [cols="1,4"] |=== | Name| Description | *other* | The socket wrapper that would be assigned from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#