[#bsl-list-054-operator_assign-03]
= xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assignment operators

== Synopses

Declared in `&lt;bslstl&lowbar;list&period;h&gt;`

Copy&hyphen;assign from the specified `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/list-054.adoc[list&lt;VALUE, ALLOCATOR&gt;]&
xref:bsl/list-054/operator_assign-028.adoc[operator&equals;](xref:bsl/list-054.adoc[list] const& rhs);
----

[.small]#xref:bsl/list-054/operator_assign-028.adoc[_» more&period;&period;&period;_]#

Move&hyphen;assign from the specified `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/list-054.adoc[list&lt;VALUE, ALLOCATOR&gt;]&
xref:bsl/list-054/operator_assign-022.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;list&gt;] rhs) noexcept(AllocTraits&colon;&colon;is&lowbar;always&lowbar;equal&colon;&colon;value);
----

[.small]#xref:bsl/list-054/operator_assign-022.adoc[_» more&period;&period;&period;_]#

Assign to this list from the specified `rhs` initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/list-054.adoc[list&lt;VALUE, ALLOCATOR&gt;]&
xref:bsl/list-054/operator_assign-01.adoc[operator&equals;](std::initializer&lowbar;list&lt;value&lowbar;type&gt; rhs);
----

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

== Return Value

modifiable reference to this list

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| list to copy&hyphen;assign from
|===


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