Returns a reference to the value mapped to the given key, inserting a default-constructed value if the key is not present.
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.
template<class K = key_type>
mapped_type&
operator[](key_arg<K> const& key);
» more...
Returns a reference to the value mapped to the given key, inserting a default-constructed value if the key is not present.
template<
class K = key_type,
K* = nullptr>
mapped_type&
operator[](key_arg<K>&& key);
» more...
A reference to the mapped value.
| Name | Description |
|---|---|
| key | The key to look up. |