[#bsl-set-0d-operator_assign-06] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::operator= :relfileprefix: ../../ :mrdocs: Assignment operators == Synopses Declared in `<bslstl_set.h>` Assign to this object the value and comparator of `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/set-0d.adoc[set<KEY, COMPARATOR, ALLOCATOR>]& xref:bsl/set-0d/operator_assign-04.adoc[operator=](xref:bsl/set-0d.adoc[set] const& rhs); ---- [.small]#xref:bsl/set-0d/operator_assign-04.adoc[_» more..._]# Move‐assign to this object the value and comparator of `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/set-0d.adoc[set<KEY, COMPARATOR, ALLOCATOR>]& xref:bsl/set-0d/operator_assign-02.adoc[operator=](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<set>] rhs) noexcept(/* see-below */); ---- [.small]#xref:bsl/set-0d/operator_assign-02.adoc[_» more..._]# Assign to this object the contents of the `values` initializer list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/set-0d.adoc[set<KEY, COMPARATOR, ALLOCATOR>]& xref:bsl/set-0d/operator_assign-0d.adoc[operator=](std::initializer_list<KEY> values); ---- [.small]#xref:bsl/set-0d/operator_assign-0d.adoc[_» more..._]# == 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]#