Source

codehound / sparse.h

#ifndef __SPARCE_H__
#define __SPARCE_H__

struct sparse_set;
struct sparse_set *sparse_set_create(unsigned int cap);
void sparse_set_destroy(struct sparse_set *set);
void sparse_set_reset(struct sparse_set *set);
size_t sparse_set_len(struct sparse_set *set);
int sparse_set_has(struct sparse_set *set, int x);
int sparse_set_add(struct sparse_set *set, int x);
int *sparse_set_data(struct sparse_set *set);


#endif /* __SPARCE_H__ */