Returns the number of elements with the given key.

Synopsis

Declared in <absl/container/linked_hash_map.h>

template<class K = key_type>
size_type
count(key_arg<K> const& key) const;

Return Value

The number of matching elements (0 or 1).

Parameters

Name

Description

key

The key to count.

Created with MrDocs