[#BloombergLP-bdljsn-Error-operator_assign-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Error.adoc[Error]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assign to this object the value of the specified `rhs` object, and return a non&hyphen;`const` reference to this object&period; The allocators of this object and `rhs` both remain unchanged&period; If `rhs` and this object have the same allocator then the value of `rhs` becomes unspecified but valid, and no exceptions will be thrown&semi; otherwise `rhs` is unchanged (and an exception may be thrown)&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;error&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Error.adoc[Error]&
operator&equals;(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;Error&gt;] rhs);
----


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