Insert the specified value into this map if the key of value does not already exist in this map; otherwise, this method has no effect. Return a pair whose first member is an iterator referring to the (possibly newly inserted) modifiable element in this map whose key is equivalent to that of the element to be inserted, and whose second member is true if a new element was inserted, and false if an element with an equivalent key was already present.

Synopsis

Declared in <bdlc_flathashmap.h>

template<class VALUE_TYPE>
bsl::pair<iterator, bool>
insert(VALUE_TYPE&& value)
requires bsl::is_constructible<value_type,
                                                  VALUE_TYPE&&>::value;

Created with MrDocs