hashset.hpp

This commit is contained in:
Antonio SJ Musumeci 2025-01-11 19:24:41 -06:00
parent a1bed8f56e
commit 9854d99432

View file

@ -22,14 +22,6 @@
#include "wyhash.h"
#include <cstdint>
#define NAME str_set
#define KEY_TY const char*
#define HASH_FN vt_hash_const_string
#define CMPR_FN vt_cmpr_const_string
#include "verstable.h"
KHASH_SET_INIT_INT64(hashset);
static
inline
uint64_t
@ -52,6 +44,15 @@ vt_cmpr_const_string(const char *key_1,
return (strcmp(key_1,key_2) == 0);
}
#define NAME str_set
#define KEY_TY const char*
#define HASH_FN vt_hash_const_string
#define CMPR_FN vt_cmpr_const_string
#include "verstable.h"
KHASH_SET_INIT_INT64(hashset);
class HashSet
{
public: