[#bsl-unordered_map-02b-insert-03] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::insert :relfileprefix: ../../ :mrdocs: `insert` overloads == Synopses Declared in `<bslstl_unorderedmap.h>` Insert each element of `values` whose key is not already present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/unordered_map-02b/insert-04.adoc[insert](std::initializer_list<value_type> values); ---- [.small]#xref:bsl/unordered_map-02b/insert-04.adoc[_» more..._]# Insert `value` if its key is not already present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/pair-0b.adoc[pair<iterator, bool>] xref:bsl/unordered_map-02b/insert-028.adoc[insert](xref:bsl/unordered_map-02b/value_type.adoc[value_type] const& value); ---- [.small]#xref:bsl/unordered_map-02b/insert-028.adoc[_» more..._]# Insert `value` if its key is not already present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALT_VALUE_TYPE> xref:bsl/pair-0b.adoc[pair<iterator, bool>] xref:bsl/unordered_map-02b/insert-06.adoc[insert](ALT_VALUE_TYPE&& value) requires std::is_constructible<value_type, ALT_VALUE_TYPE&&>::value; ---- [.small]#xref:bsl/unordered_map-02b/insert-06.adoc[_» more..._]# Insert `value` at `hint` if its key is not already present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_map-02b/iterator.adoc[iterator] xref:bsl/unordered_map-02b/insert-08.adoc[insert]( xref:bsl/unordered_map-02b/const_iterator.adoc[const_iterator] hint, xref:bsl/unordered_map-02b/value_type.adoc[value_type] const& value); ---- [.small]#xref:bsl/unordered_map-02b/insert-08.adoc[_» more..._]# Insert each element in `[first, last)]` whose key is not already present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITERATOR> void xref:bsl/unordered_map-02b/insert-0b.adoc[insert]( INPUT_ITERATOR first, INPUT_ITERATOR last); ---- [.small]#xref:bsl/unordered_map-02b/insert-0b.adoc[_» more..._]# Insert `value` at `hint` if its key is not already present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALT_VALUE_TYPE> xref:bsl/unordered_map-02b/iterator.adoc[iterator] xref:bsl/unordered_map-02b/insert-021.adoc[insert]( xref:bsl/unordered_map-02b/const_iterator.adoc[const_iterator] hint, ALT_VALUE_TYPE&& value) requires std::is_constructible<value_type, ALT_VALUE_TYPE&&>::value; ---- [.small]#xref:bsl/unordered_map-02b/insert-021.adoc[_» more..._]# == Return Value * iterator to the element and whether insertion occurred * iterator to the existing or newly inserted element == Parameters [cols="1,4"] |=== | Name| Description | *values* | initializer list of values to insert | *value* | value to insert | *hint* | iterator hint for insertion | *first* | start of the range | *last* | end of the range (one past last) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#