[#absl-linked_hash_map-contains] = xref:absl.adoc[absl]::xref:absl/linked_hash_map.adoc[linked_hash_map]::contains :relfileprefix: ../../ :mrdocs: Returns whether the map contains an element with the given key. == Synopsis Declared in `<absl/container/linked_hash_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class K = xref:absl/linked_hash_map/key_type.adoc[key_type]> bool contains(xref:absl/linked_hash_map.adoc[key_arg<K>] const& key) const; ---- == Return Value `true` if the key is present. == Parameters [cols="1,4"] |=== | Name| Description | *key* | The key to search for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#