Insert value if its key is not already present.
Synopsis
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;
Description
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.
Return Value
iterator to the (possibly newly inserted) element
Parameters
Name |
Description |
hint |
iterator hint (ignored) |
value |
value to insert |
Created with MrDocs