From 6fccac3372170153b59e829d11c6c0b0a5c2bc77 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:15:39 +1000 Subject: start fleshing out API for hashmap / hashset --- src/std/containers/hashmap.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/std/containers/hashmap.h (limited to 'src/std/containers/hashmap.h') diff --git a/src/std/containers/hashmap.h b/src/std/containers/hashmap.h new file mode 100644 index 0000000..64a5bf7 --- /dev/null +++ b/src/std/containers/hashmap.h @@ -0,0 +1,28 @@ +/** + * @file hashmap.h + * @author your name (you@domain.com) + * @brief + * @version 0.1 + * @date 2024-04-27 + * + * @copyright Copyright (c) 2024 + * + */ + + +typedef struct hashmap hashmap; + +/* +Example usage +------------- +init hashmap +insert (string, material) +get (string) -> material_opt or material* ? + +*/ + +void hashmap_init(hashmap* map); + +// ... + +void hashmap_free(hashmap* map); \ No newline at end of file -- cgit v1.2.3-70-g09d2