summaryrefslogtreecommitdiff
path: root/src/std/containers/hashmap.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-19 15:15:39 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-19 15:15:39 +1000
commit6fccac3372170153b59e829d11c6c0b0a5c2bc77 (patch)
tree92290b3ed628cd2706847fcc3f9bdddeda521d03 /src/std/containers/hashmap.h
parent259da84075c62c2ab96c7cb922df2000ebefb735 (diff)
start fleshing out API for hashmap / hashset
Diffstat (limited to 'src/std/containers/hashmap.h')
-rw-r--r--src/std/containers/hashmap.h28
1 files changed, 28 insertions, 0 deletions
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