[#CNetMessage-operator_assign-02]
= xref:CNetMessage.adoc[CNetMessage]::operator&equals;
:relfileprefix: ../
:mrdocs:

Assignment operators

== Synopses

Declared in `&lt;net&period;h&gt;`

Deleted copy assignment&semi; messages are move&hyphen;only&period;


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

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

Move&hyphen;assign a message&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:CNetMessage.adoc[CNetMessage]&
xref:CNetMessage/operator_assign-0c.adoc[operator&equals;](xref:CNetMessage.adoc[CNetMessage]&& other) = default;
----

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

== Return Value

a reference to this message&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| the message that would be copied from&period;
|===


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