[#BloombergLP-bslstl-Optional_Base-05-operator_assign-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional_Base]::operator= :relfileprefix: ../../../ :mrdocs: Assignment operators == Synopses Declared in `<bslstl_optional.h>` Assign to this object the value of the specified `rhs` object, and return a non‐`const` reference to this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional_Base<t_TYPE, t_USES_BSLMA_ALLOC>]& xref:BloombergLP/bslstl/Optional_Base-05/operator_assign-05.adoc[operator=](xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional_Base] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/operator_assign-05.adoc[_» more..._]# Assign to this object the value of the specified `rhs` object, and return a non‐`const` reference to this object. The allocators of this object and `rhs` both remain unchanged. The contents of `rhs` are either move‐constructed into or move‐assigned to this object. `rhs` is left in a valid but unspecified state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/Optional_Base-05.adoc[Optional_Base<t_TYPE, t_USES_BSLMA_ALLOC>]& xref:BloombergLP/bslstl/Optional_Base-05/operator_assign-08.adoc[operator=](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<Optional_Base>] rhs); ---- [.small]#xref:BloombergLP/bslstl/Optional_Base-05/operator_assign-08.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#