[#bsl-set-0d-operator_assign-06]
= xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assignment operators

== Synopses

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

Assign to this object the value and comparator of `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/set-0d.adoc[set&lt;KEY, COMPARATOR, ALLOCATOR&gt;]&
xref:bsl/set-0d/operator_assign-04.adoc[operator&equals;](xref:bsl/set-0d.adoc[set] const& rhs);
----

[.small]#xref:bsl/set-0d/operator_assign-04.adoc[_» more&period;&period;&period;_]#

Move&hyphen;assign to this object the value and comparator of `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/set-0d.adoc[set&lt;KEY, COMPARATOR, ALLOCATOR&gt;]&
xref:bsl/set-0d/operator_assign-02.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;set&gt;] rhs) noexcept(&sol;&ast; see-below &ast;&sol;);
----

[.small]#xref:bsl/set-0d/operator_assign-02.adoc[_» more&period;&period;&period;_]#

Assign to this object the contents of the `values` initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/set-0d.adoc[set&lt;KEY, COMPARATOR, ALLOCATOR&gt;]&
xref:bsl/set-0d/operator_assign-0d.adoc[operator&equals;](std::initializer&lowbar;list&lt;KEY&gt; values);
----

[.small]#xref:bsl/set-0d/operator_assign-0d.adoc[_» more&period;&period;&period;_]#

== Return Value

reference providing modifiable access to this set

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| set whose value is assigned
| *values*
| initializer list of keys to assign
|===


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