void *(* copy)(const void *)
A function pointer used to copy the data type.
size_t capacity
The current capacity of the hashset.
void hashset_put(t_hashset *hs, const void *val)
Adds a copy of the specified element to the hashset.
int(* cmp)(const void *, const void *)
(optional) A function ponter used to compare members of this data type
size_t(* hash)(const void *, size_t)
(optional) A function pointer used to get a hash value of this data type
size_t size
The number of elements in the hashset.
A dynamically resizing linear-probing hashset.
const t_type * type
The type of elements in the hashset.