]> git.lizzy.rs Git - nothing.git/blob - src/hashset.h
(#813) Implement player_layer_render
[nothing.git] / src / hashset.h
1 #ifndef HASHSET_H_
2 #define HASHSET_H_
3
4 #include <stdbool.h>
5
6 typedef struct HashSet HashSet;
7
8 HashSet *create_hashset(size_t element_size, size_t n);
9 void destroy_hashset(HashSet *hashset);
10
11 int hashset_insert(HashSet *hashset, const void *element);
12 bool hashset_contains(HashSet *hashset, const void *element);
13 void hashset_clear(HashSet *hashset);
14 size_t hashset_count(HashSet *hashset);
15
16 void *hashset_values(HashSet *hashset);
17
18 #endif  // HASHSET_H_