|
cdcontainers
0.1.1
Library of data containers and collections for C programming language.
|
Functions | |
| static float | cdc_hash_table_load_factor (struct cdc_hash_table *t) |
| Returns average number of elements per bucket. More... | |
| static float | cdc_hash_table_max_load_factor (struct cdc_hash_table *t) |
| Returns current maximum load factor. More... | |
| static void | cdc_hash_table_set_max_load_factor (struct cdc_hash_table *t, float load_factor) |
| Sets the maximum load factor. More... | |
| enum cdc_stat | cdc_hash_table_rehash (struct cdc_hash_table *t, size_t count) |
| Reserves at least the specified number of buckets. This regenerates the hash table. More... | |
| enum cdc_stat | cdc_hash_table_reserve (struct cdc_hash_table *t, size_t count) |
| Reserves space for at least the specified number of elements. This regenerates the hash table. More... | |
|
inlinestatic |
Returns average number of elements per bucket.
| [in] | t | - cdc_hash_table |
|
inlinestatic |
Returns current maximum load factor.
| [in] | t | - cdc_hash_table |
|
inlinestatic |
Sets the maximum load factor.
| [in] | t | - cdc_hash_table |
| [in] | load_factor | - new maximum load factor |
| enum cdc_stat cdc_hash_table_rehash | ( | struct cdc_hash_table * | t, |
| size_t | count | ||
| ) |
Reserves at least the specified number of buckets. This regenerates the hash table.
| [in] | t | - cdc_hash_table |
| [in] | count | - new number of buckets |
| enum cdc_stat cdc_hash_table_reserve | ( | struct cdc_hash_table * | t, |
| size_t | count | ||
| ) |
Reserves space for at least the specified number of elements. This regenerates the hash table.
| [in] | t | - cdc_hash_table |
| [in] | count | - new capacity of the container |
1.8.13