Josh Baker
9bb1f630e3
Merge pull request #18 from scossu/iterator
...
Add hashmap_iter function.
3 years ago
Stefano Cossu
0f03bd0417
Make item in hashmap_set constant.
3 years ago
Stefano Cossu
86ac5d4b2d
Add hashmap_iter function.
3 years ago
Tom Copeland
14ed10f4c5
Allow passing an element-freeing function to hashmap_new
...
If present, the function is then used in hashmap_clear and
hashmap_free to free any data referenced by the hashmap elements.
3 years ago
Stefano Cossu
aa1d058456
Make "key" argument of hashmap_get const void.
3 years ago
tidwall
9fb4b295a0
Added hashmap_new_with_allocator
...
Deprecated hashmap_set_allocator
See #6 for more information
4 years ago
tidwall
9dd095ec1b
Added hashmap_clear function
...
hashmap_clear quickly clears the map.
When the update_cap is provided, the map's capacity will be
updated to match the currently number of allocated buckets.
This is an optimization to ensure that this operation does
not perform any allocations.
closes #1
4 years ago
tidwall
3db84f0b0a
Added probe function
4 years ago
tidwall
f38213fffe
Added udata to comparator
4 years ago
tidwall
268ea2d9e6
Added oom tests
4 years ago
tidwall
991b63b5c9
first commit
4 years ago