Insert value if its key is not already present.
Declared in <bdlc_flathashmap.h>
template<class VALUE_TYPE>
iterator
insert(
const_iterator hint,
VALUE_TYPE&& value)
requires bsl::is_constructible<value_type,
VALUE_TYPE&&>::value;
Return 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. The supplied hint is ignored.
iterator to the (possibly newly inserted) element
| Name | Description |
|---|---|
| hint | iterator hint (ignored) |
| value | value to insert |