[#absl-linked_hash_map-insert-00] = xref:absl.adoc[absl]::xref:absl/linked_hash_map.adoc[linked_hash_map]::insert :relfileprefix: ../../ :mrdocs: `insert` overloads == Synopses Declared in `<absl/container/linked_hash_map.h>` Inserts the elements of an initializer list into the map. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:absl/linked_hash_map/insert-0e.adoc[insert](std::initializer_list<value_type> ilist); ---- [.small]#xref:absl/linked_hash_map/insert-0e.adoc[_» more..._]# Inserts an element into the map. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::pair<iterator, bool> xref:absl/linked_hash_map/insert-06.adoc[insert](xref:absl/linked_hash_map/value_type.adoc[value_type] const& v); ---- [.small]#xref:absl/linked_hash_map/insert-06.adoc[_» more..._]# Inserts an element via a node handle. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/insert_return_type.adoc[insert_return_type] xref:absl/linked_hash_map/insert-035.adoc[insert](xref:absl/linked_hash_map/node_type.adoc[node_type]&& node); ---- [.small]#xref:absl/linked_hash_map/insert-035.adoc[_» more..._]# Inserts an element into the map. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::pair<iterator, bool> xref:absl/linked_hash_map/insert-0a.adoc[insert](xref:absl/linked_hash_map/value_type.adoc[value_type]&& v); ---- [.small]#xref:absl/linked_hash_map/insert-0a.adoc[_» more..._]# Inserts an element into the map, ignoring the position hint. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/iterator.adoc[iterator] xref:absl/linked_hash_map/insert-0c.adoc[insert]( xref:absl/linked_hash_map/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_map/value_type.adoc[value_type] const& v); ---- [.small]#xref:absl/linked_hash_map/insert-0c.adoc[_» more..._]# Inserts an element via a node handle, ignoring the position hint. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/iterator.adoc[iterator] xref:absl/linked_hash_map/insert-033.adoc[insert]( xref:absl/linked_hash_map/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_map/node_type.adoc[node_type]&& node); ---- [.small]#xref:absl/linked_hash_map/insert-033.adoc[_» more..._]# Inserts an element into the map, ignoring the position hint. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_map/iterator.adoc[iterator] xref:absl/linked_hash_map/insert-07.adoc[insert]( xref:absl/linked_hash_map/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_map/value_type.adoc[value_type]&& v); ---- [.small]#xref:absl/linked_hash_map/insert-07.adoc[_» more..._]# Inserts the elements of the range `[first, last)]` into the map. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class InputIt> void xref:absl/linked_hash_map/insert-0d.adoc[insert]( InputIt first, InputIt last); ---- [.small]#xref:absl/linked_hash_map/insert-0d.adoc[_» more..._]# == Return Value * A pair of an iterator to the element and a bool that is `true` if insertion took place. * The result of the insertion, including the node handle if insertion did not take place. * An iterator to the inserted or existing element. == Parameters [cols="1,4"] |=== | Name| Description | *ilist* | The initializer list of elements to insert. | *v* | The value to insert. | *node* | The node handle holding the element to insert. | *hint* | A position hint, which is ignored. | *first* | An iterator to the first element to insert. | *last* | An iterator past the last element to insert. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#