Browse Source

hashset.hpp

hash
Antonio SJ Musumeci 2 weeks ago
parent
commit
9854d99432
  1. 17
      src/hashset.hpp

17
src/hashset.hpp

@ -22,14 +22,6 @@
#include "wyhash.h" #include "wyhash.h"
#include <cstdint> #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 static
inline inline
uint64_t uint64_t
@ -52,6 +44,15 @@ vt_cmpr_const_string(const char *key_1,
return (strcmp(key_1,key_2) == 0); 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 class HashSet
{ {
public: public:

Loading…
Cancel
Save