absl::linked_hash_set::count

Returns the number of elements matching the given key.

Synopsis

Declared in <absl/container/linked_hash_set.h>

template<typename K = key_type>
size_t
count(key_arg<K> const& key) const;

Return Value

The number of matching elements (0 or 1).

Parameters

NameDescription
keyThe key to count.