absl::linked_hash_set::find

Finds the element with the given key.

Synopses

Declared in <absl/container/linked_hash_set.h>

Finds the element with the given key.

template<typename K = key_type>
iterator
find(key_arg<K> const& key);
» more...

Finds the element with the given key.

template<typename K = key_type>
const_iterator
find(key_arg<K> const& key) const;
» more...

Return Value

  • An iterator to the element, or end() if not found.
  • A const iterator to the element, or end() if not found.

Parameters

NameDescription
keyThe key to search for.