[#BloombergLP-bdlc-FlatHashMap-insert-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::insert :relfileprefix: ../../../ :mrdocs: Insert `value` if its key is not already present. == Synopsis Declared in `<bdlc_flathashmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VALUE_TYPE> xref:BloombergLP/bdlc/FlatHashMap/iterator.adoc[iterator] insert( xref:BloombergLP/bdlc/FlatHashMap/const_iterator.adoc[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 [cols="1,4"] |=== | Name| Description | *hint* | iterator hint (ignored) | *value* | value to insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#