absl::linked_hash_set::extract

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

Synopsis

Declared in <absl/container/linked_hash_set.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.

Parameters

NameDescription
keyThe key of the element to extract.