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

Assign to this object the value resulting from first clearing this set and then inserting each `value&lowbar;type` object in the specified `values` initializer list, ignoring those keys having a value equivalent to that which appears earlier in the list&semi; return a reference providing modifiable access to this object&period; This method requires that the (template parameter) type `KEY` be `copy&hyphen;insertable` into this set (see &lcub;Requirements on `KEY`&rcub;)&period;

== Synopsis

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

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


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