insert overloads
Synopses
Declared in <absl/container/linked_hash_set.h>
Inserts the elements from an initializer list.
void
insert(std::initializer_list<key_type> ilist);
Inserts an element extracted as a node handle.
Inserts an element into the set.
template<typename K = key_type>
std::pair<iterator, bool>
insert(key_arg<K> const& k);
Inserts an element into the set.
template<
typename K = key_type,
K* = nullptr>
std::pair<iterator, bool>
insert(key_arg<K>&& k);
Inserts an element extracted as a node handle, using a position hint.
iterator
insert(
const_iterator hint,
node_type&& node);
Inserts the elements from the range [first, last)].
template<class InputIt>
void
insert(
InputIt first,
InputIt last);
Inserts an element into the set using a position hint.
template<typename K = key_type>
requires !std::is_convertible_v<const key_arg<K>&, const_iterator> &&
!std::is_convertible_v<const key_arg<K>&, iterator>
iterator
insert(
const_iterator hint,
key_arg<K> const& k);
Inserts an element into the set using a position hint.
template<
typename K = key_type,
K* = nullptr>
requires !std::is_convertible_v<key_arg<K>&&, const_iterator> &&
!std::is_convertible_v<key_arg<K>&&, iterator>
iterator
insert(
const_iterator hint,
key_arg<K>&& k);
Return Value
-
An
insert_return_typedescribing the result. -
A pair of an iterator to the element and a bool that is
trueif insertion took place. -
An iterator to the inserted or existing element.
Parameters
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. |
Created with MrDocs