Constructs an element in place if the key is not present, ignoring the position hint.
Declared in <absl/container/linked_hash_map.h>
template<
class K = key_type,
typename... Args>
iterator
try_emplace(
const_iterator hint,
key_arg<K> const& key,
Args&&... args);
An iterator to the inserted or existing element.
| Name | Description |
|---|---|
| key | The key to insert or look up. |
| args | The arguments used to construct the mapped value. |
| hint | A position hint, which is ignored. |