absl::linked_hash_map::extract

extract overloads

Synopses

Declared in <absl/container/linked_hash_map.h>

Extracts the element at the given position as a node handle.

node_type
extract(const_iterator position);
» more...

Extracts the element with the given key as a node handle.

template<class K = key_type>
requires !std::is_same_v<K, iterator>
node_type
extract(key_arg<K> const& key);
» more...

Return Value

  • A node handle owning the extracted element.
  • A node handle owning the extracted element, or an empty handle if the key is not present.

Parameters

NameDescription
positionAn iterator to the element to extract.
keyThe key of the element to extract.