absl::linked_hash_map::contains

Returns whether the map contains an element with the given key.

Synopsis

Declared in <absl/container/linked_hash_map.h>

template<class K = key_type>
bool
contains(key_arg<K> const& key) const;

Return Value

true if the key is present.

Parameters

NameDescription
keyThe key to search for.