[#absl-linked_hash_map-operator_subs-0a] = xref:absl.adoc[absl]::xref:absl/linked_hash_map.adoc[linked_hash_map]::operator[] :relfileprefix: ../../ :mrdocs: Returns a reference to the value mapped to the given key, inserting a default‐constructed value if the key is not present. == Synopses Declared in `<absl/container/linked_hash_map.h>` Returns a reference to the value mapped to the given key, inserting a default‐constructed value if the key is not present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class K = xref:absl/linked_hash_map/key_type.adoc[key_type]> xref:absl/linked_hash_map/mapped_type.adoc[mapped_type]& xref:absl/linked_hash_map/operator_subs-09.adoc[operator[]](xref:absl/linked_hash_map.adoc[key_arg<K>] const& key); ---- [.small]#xref:absl/linked_hash_map/operator_subs-09.adoc[_» more..._]# Returns a reference to the value mapped to the given key, inserting a default‐constructed value if the key is not present. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class K = xref:absl/linked_hash_map/key_type.adoc[key_type], K* = nullptr> xref:absl/linked_hash_map/mapped_type.adoc[mapped_type]& xref:absl/linked_hash_map/operator_subs-05.adoc[operator[]](xref:absl/linked_hash_map.adoc[key_arg<K>]&& key); ---- [.small]#xref:absl/linked_hash_map/operator_subs-05.adoc[_» more..._]# == Return Value A reference to the mapped value. == Parameters [cols="1,4"] |=== | Name| Description | *key* | The key to look up. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#