absl::linked_hash_map::extract

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

Synopsis

Declared in <absl/container/linked_hash_map.h>

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

Return Value

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

Parameters

NameDescription
keyThe key of the element to extract.