This class template provides a flat hash table implementation useful for implementing a flat hash set and flat hash map.
Synopsis
Declared in <bdlc_flathashtable.h>
template<
class KEY,
class ENTRY,
class ENTRY_UTIL,
class HASH,
class EQUAL>
class FlatHashTable;
Type Aliases
Name |
Description |
Iterator providing non‐modifiable access to entries. |
|
Entry type stored by this table. |
|
Utility type for constructing entries and extracting keys. |
|
Hash functor type. |
|
Iterator providing modifiable access to entries. |
|
Key equality predicate type. |
|
Key type used by this table. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object and each of its entries. |
Assignment operators |
|
Return the allocator used by this hash table to supply memory. |
|
Return an iterator representing the beginning of the sequence of entries held by this container. |
|
Return the number of elements this table could hold if the load factor were 1. |
|
Return an iterator representing the beginning of the sequence of entries held by this container. |
|
Return an iterator representing one past the end of the sequence of entries held by this container. |
|
Remove all entries from this table. |
|
Return |
|
Return the address of the underlying control array, or 0. |
|
Return the number of objects in this table having the specified |
|
Emplace an |
|
Return |
|
Return an iterator representing one past the end of the sequence of entries held by this container. |
|
Return the address of the underlying entries array, or 0. |
|
|
|
|
|
|
|
Return (a copy of) the unary hash functor used by this flat hash table to generate a hash value (of type `bsl::size_t) for a `KEY' object. |
|
|
|
Insert an entry for |
|
Return (a copy of) the binary key‐equality functor used by this flat hash table that returns |
|
Return the current ratio between the number of elements in this table and its capacity. |
|
Return the maximum load factor allowed for this table. |
|
Return a reference to the entry for |
|
Change the capacity to at least |
|
Reserve capacity for at least the specified |
|
Remove all entries from this table and release all memory from this table, returning the table to the zero‐capacity state. |
|
Return the number of entries in this table. |
|
Efficiently exchange the value of this table with |
|
Insert a newly constructed entry for |
Static Data Members
Name |
Description |
Mask used to extract the seven‐bit hashlet from a hash value. |
|
Denominator of the fraction that specifies the maximum load factor. |
|
Numerator of the fraction that specifies the maximum load factor. |
|
Minimum non‐zero capacity of a table. |
Non-Member Functions
Name |
Description |
Return |
|
Return |
|
Exchange the values of the specified |
Created with MrDocs