bsl::set::operator=

Assign to this object the contents of the values initializer list.

Synopsis

Declared in <bslstl_set.h>

set<KEY, COMPARATOR, ALLOCATOR>&
operator=(std::initializer_list<KEY> values);

Description

Clear this set and then insert each value_type object in values, ignoring those keys having a value equivalent to that which appears earlier in the list; return a reference providing modifiable access to this object. This method requires that the (template parameter) type KEY be copy-insertable into this set (see {Requirements on KEY}).

Return Value

reference providing modifiable access to this set

Parameters

NameDescription
valuesinitializer list of keys to assign