hkeys¶
Category: hash
GitHub: cute_hashtable.h
Get a const pointer to the array of keys.
Parameters | Description |
---|---|
h | The hashtable. Can be NULL . Needs to be a pointer to the type of items in the table. |
Code Example¶
Loop over all {key, item} pairs of a table.
htbl CF_V2 table = my_table();
const uint64_t keys = hkeys(table);
for (int i = 0; i < hcount(table); ++i) {
uint64_t key = keys[i];
CF_V2 item = table[i];
// ...
}
Remarks¶
The keys are type uint64_t
.
Related Pages¶
htbl
hset
hadd
hget
hfind
hget_ptr
hfind_ptr
hhas
hdel
hclear
hfree
hitems
hswap
hsize
hcount