absl::linked_hash_set::contains

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

Synopsis

Declared in <absl/container/linked_hash_set.h>

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

Return Value

true if the set contains a matching element.

Parameters

NameDescription
keyThe key to search for.