[#absl-flat_hash_map] = xref:absl.adoc[absl]::flat_hash_map :relfileprefix: ../ :mrdocs: An unordered associative container of unique keys and associated values, optimized for speed and memory footprint. == Synopsis Declared in `<absl/container/flat_hash_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 ---- == Description 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>`. == Base Classes [cols="1,4"] |=== | Name| Description | `/* implementation-defined */::InstantiateRawHashMap</* implementation-defined */, Hash, Eq, Allocator>::type` | |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:absl/flat_hash_map/2constructor.adoc[`flat_hash_map`] [.small]#[constructor]# | Constructs an empty `flat_hash_map`. |=== == Using Declarations [cols="1"] |=== | Name | xref:absl/flat_hash_map/_10using.adoc[`Unnamed using`] | xref:absl/flat_hash_map/at.adoc[`at`] | xref:absl/flat_hash_map/begin.adoc[`begin`] | xref:absl/flat_hash_map/bucket_count.adoc[`bucket_count`] | xref:absl/flat_hash_map/capacity.adoc[`capacity`] | xref:absl/flat_hash_map/cbegin.adoc[`cbegin`] | xref:absl/flat_hash_map/cend.adoc[`cend`] | xref:absl/flat_hash_map/clear.adoc[`clear`] | xref:absl/flat_hash_map/contains.adoc[`contains`] | xref:absl/flat_hash_map/count.adoc[`count`] | xref:absl/flat_hash_map/emplace.adoc[`emplace`] | xref:absl/flat_hash_map/emplace_hint.adoc[`emplace_hint`] | xref:absl/flat_hash_map/empty.adoc[`empty`] | xref:absl/flat_hash_map/end.adoc[`end`] | xref:absl/flat_hash_map/equal_range.adoc[`equal_range`] | xref:absl/flat_hash_map/erase.adoc[`erase`] | xref:absl/flat_hash_map/extract.adoc[`extract`] | xref:absl/flat_hash_map/find.adoc[`find`] | xref:absl/flat_hash_map/get_allocator.adoc[`get_allocator`] | xref:absl/flat_hash_map/hash_function.adoc[`hash_function`] | xref:absl/flat_hash_map/insert.adoc[`insert`] | xref:absl/flat_hash_map/insert_or_assign.adoc[`insert_or_assign`] | xref:absl/flat_hash_map/key_eq.adoc[`key_eq`] | xref:absl/flat_hash_map/load_factor.adoc[`load_factor`] | xref:absl/flat_hash_map/max_load_factor.adoc[`max_load_factor`] | xref:absl/flat_hash_map/max_size.adoc[`max_size`] | xref:absl/flat_hash_map/merge.adoc[`merge`] | xref:absl/flat_hash_map/operator[].adoc[`operator[]`] | xref:absl/flat_hash_map/rehash.adoc[`rehash`] | xref:absl/flat_hash_map/reserve.adoc[`reserve`] | xref:absl/flat_hash_map/size.adoc[`size`] | xref:absl/flat_hash_map/swap.adoc[`swap`] | xref:absl/flat_hash_map/try_emplace.adoc[`try_emplace`] |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:absl/GetAllFlags.adoc[`GetAllFlags`] | Returns current state of the Flags registry in a form of mapping from flag name to a flag reflection handle. | xref:absl/erase_if-08b.adoc[`erase_if`] | Erases all elements that satisfy the predicate `pred` from the container `c`. | xref:absl/swap-03.adoc[`swap`] | Swaps the contents of two `flat_hash_map` containers. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#