4 * @brief Generic hashset functions
5 * @author Matthias Braun
9 /* You have to specialize this header by defining HashSet, HashSetIterator and
16 #define HashSetEntry ValueType
18 typedef struct HashSetEntry {
24 typedef struct HashSet {
25 HashSetEntry *entries;
27 size_t enlarge_threshold;
28 size_t shrink_threshold;
33 unsigned entries_version;
35 #ifdef ADDITIONAL_DATA
40 typedef struct HashSetIterator {
41 HashSetEntry *current_bucket;
45 unsigned entries_version;