absl::linked_hash_map::operator[]

Returns a reference to the value mapped to the given key, inserting a default-constructed value if the key is not present.

Synopsis

Declared in <absl/container/linked_hash_map.h>

template<
    class K = key_type,
    K* = nullptr>
mapped_type&
operator[](key_arg<K>&& key);

Return Value

A reference to the mapped value.

Parameters

NameDescription
keyThe key to look up.