#ifndef HASHMAP_H
#define HASHMAP_H
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct HashMap HashMap;
typedef struct {
uint64_t present;
uint64_t value;
} hm_option;
HashMap *hm_create(size_t min_items);
void hm_destroy(HashMap *map);
size_t hm_len(const HashMap *map);
size_t hm_capacity(const HashMap *map);
void hm_clear(HashMap *map);
hm_option hm_put(HashMap *map, uint64_t key, uint64_t value);
hm_option hm_get(const HashMap *map, uint64_t key);
hm_option hm_remove(HashMap *map, uint64_t key);
uint64_t hm_contains(const HashMap *map, uint64_t key);
hm_option hm_put_if_absent(HashMap *map, uint64_t key, uint64_t value);
hm_option hm_get_or_insert(HashMap *map, uint64_t key, uint64_t value);
hm_option hm_replace(HashMap *map, uint64_t key, uint64_t value);
uint64_t hm_iter_next(const HashMap *map, size_t *cursor, uint64_t *key,
uint64_t *value);
#ifdef __cplusplus
}
#endif
#endif