An unordered associative container of unique keys and associated values, optimized for speed and memory footprint.
Declared in <absl/container/flat_hash_map.h>
template<
class K,
class V,
class Hash = /* implementation-defined */::DefaultHash,
class Eq = /* implementation-defined */::DefaultEq,
class Allocator = /* implementation-defined */::DefaultAlloc>
class flat_hash_map
: public /* implementation-defined */::InstantiateRawHashMap</* implementation-defined */, Hash, Eq, Allocator>::type
An absl::flat_hash_map<K, V> is an unordered associative container which has been optimized for both speed and memory footprint in most common use cases. Its interface is similar to that of std::unordered_map<K, V>.
| Name | Description |
|---|---|
/* implementation-defined */::InstantiateRawHashMap</* implementation-defined */, Hash, Eq, Allocator>::type |
| Name | Description |
|---|---|
flat_hash_map [constructor] | Constructs an empty flat_hash_map. |
| Name | Description |
|---|---|
GetAllFlags | Returns current state of the Flags registry in a form of mapping from flag name to a flag reflection handle. |
erase_if | Erases all elements that satisfy the predicate pred from the container c. |
swap | Swaps the contents of two flat_hash_map containers. |