[#bsl-map-0a7-insert-023] = xref:bsl.adoc[bsl]::xref:bsl/map-0a7.adoc[map]::insert :relfileprefix: ../../ :mrdocs: Insert into this map the specified `value` (in amortized constant time if the specified `hint` is a valid immediate successor to `value`) if a key (the `first` element) equivalent to that of `value` does not already exist in this map; otherwise, this method has no effect. Return an iterator referring to the (possibly newly inserted) `value_type` object in this map whose key is equivalent to that of `value`. If `hint` is not a valid immediate successor to `value`, this operation has `O[log(N)]` complexity, where `N` is the size of this map. This method requires that the (template parameter) types `KEY` and `VALUE` both be `move‐insertable` into this map (see {Requirements on `KEY` and `VALUE`}). The behavior is undefined unless `hint` is an iterator in the range `[begin() .. end()]` (both endpoints included). == Synopsis Declared in `<bslstl_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/map-0a7/iterator.adoc[map<KEY, VALUE, COMPARATOR, ALLOCATOR>::iterator] insert( xref:bsl/map-0a7/const_iterator.adoc[const_iterator] hint, xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<value_type>] value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#