Assign to this map the elements of the specified values list.

Synopsis

Declared in <bdlc_flathashmap.h>

FlatHashMap<KEY, VALUE, HASH, EQUAL>&
operator=(bsl::initializer_list<value_type> values);

Description

Assign to this object the value resulting from first clearing this map and then inserting each object in the specified values initializer list, ignoring those objects having a value whose key is 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 map (see {Requirements on KEY, HASH, and EQUAL}).

Return Value

modifiable reference to this map

Parameters

Name

Description

values

initializer list of key/value pairs to assign

Created with MrDocs