[#absl-linked_hash_set-insert-03e] = xref:absl.adoc[absl]::xref:absl/linked_hash_set.adoc[linked_hash_set]::insert :relfileprefix: ../../ :mrdocs: `insert` overloads == Synopses Declared in `<absl/container/linked_hash_set.h>` Inserts the elements from an initializer list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:absl/linked_hash_set/insert-032.adoc[insert](std::initializer_list<key_type> ilist); ---- [.small]#xref:absl/linked_hash_set/insert-032.adoc[_» more..._]# Inserts an element extracted as a node handle. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/insert_return_type.adoc[insert_return_type] xref:absl/linked_hash_set/insert-05.adoc[insert](xref:absl/linked_hash_set/node_type.adoc[node_type]&& node); ---- [.small]#xref:absl/linked_hash_set/insert-05.adoc[_» more..._]# Inserts an element into the set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename K = xref:absl/linked_hash_set/key_type.adoc[key_type]> std::pair<iterator, bool> xref:absl/linked_hash_set/insert-0a.adoc[insert](xref:absl/linked_hash_set.adoc[key_arg<K>] const& k); ---- [.small]#xref:absl/linked_hash_set/insert-0a.adoc[_» more..._]# Inserts an element into the set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K = xref:absl/linked_hash_set/key_type.adoc[key_type], K* = nullptr> std::pair<iterator, bool> xref:absl/linked_hash_set/insert-0fe.adoc[insert](xref:absl/linked_hash_set.adoc[key_arg<K>]&& k); ---- [.small]#xref:absl/linked_hash_set/insert-0fe.adoc[_» more..._]# Inserts an element extracted as a node handle, using a position hint. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/linked_hash_set/iterator.adoc[iterator] xref:absl/linked_hash_set/insert-04.adoc[insert]( xref:absl/linked_hash_set/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_set/node_type.adoc[node_type]&& node); ---- [.small]#xref:absl/linked_hash_set/insert-04.adoc[_» more..._]# Inserts the elements from the range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class InputIt> void xref:absl/linked_hash_set/insert-0f7.adoc[insert]( InputIt first, InputIt last); ---- [.small]#xref:absl/linked_hash_set/insert-0f7.adoc[_» more..._]# Inserts an element into the set using a position hint. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename K = xref:absl/linked_hash_set/key_type.adoc[key_type]> requires !std::is_convertible_v<const key_arg<K>&, const_iterator> && !std::is_convertible_v<const key_arg<K>&, iterator> xref:absl/linked_hash_set/iterator.adoc[iterator] xref:absl/linked_hash_set/insert-08.adoc[insert]( xref:absl/linked_hash_set/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_set.adoc[key_arg<K>] const& k); ---- [.small]#xref:absl/linked_hash_set/insert-08.adoc[_» more..._]# Inserts an element into the set using a position hint. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K = xref:absl/linked_hash_set/key_type.adoc[key_type], K* = nullptr> requires !std::is_convertible_v<key_arg<K>&&, const_iterator> && !std::is_convertible_v<key_arg<K>&&, iterator> xref:absl/linked_hash_set/iterator.adoc[iterator] xref:absl/linked_hash_set/insert-0e.adoc[insert]( xref:absl/linked_hash_set/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_set.adoc[key_arg<K>]&& k); ---- [.small]#xref:absl/linked_hash_set/insert-0e.adoc[_» more..._]# == Return Value * An `insert_return_type` describing the result. * A pair of an iterator to the element and a bool that is `true` if insertion took place. * An iterator to the inserted or existing element. == Parameters [cols="1,4"] |=== | Name| Description | *ilist* | The initializer list of elements to insert. | *node* | The node handle to insert. | *k* | 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]#