Insert elements from values whose keys are not already present.

Synopsis

Declared in <bslstl_map.h>

void
insert(std::initializer_list<value_type> values);

Description

Insert into this map the value of each value_type object in the specified values initializer list if a key equivalent to that of the object is not already contained in this map. This method requires that the (template parameter) types KEY and VALUE both be copy‐insertable into this map (see {Requirements on KEY and VALUE}).

Parameters

Name

Description

values

initializer list of elements to insert

Created with MrDocs