absl::linked_hash_set::erase

Removes the element with the given key.

Synopsis

Declared in <absl/container/linked_hash_set.h>

template<typename K = key_type>
size_type
erase(key_arg<K> const& key);

Return Value

The number of elements removed (0 or 1).

Parameters

NameDescription
keyThe key to erase.