summaryrefslogtreecommitdiff
path: root/yhttpd/src/maps/nhashmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'yhttpd/src/maps/nhashmap.h')
-rw-r--r--yhttpd/src/maps/nhashmap.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/yhttpd/src/maps/nhashmap.h b/yhttpd/src/maps/nhashmap.h
new file mode 100644
index 0000000..f440230
--- /dev/null
+++ b/yhttpd/src/maps/nhashmap.h
@@ -0,0 +1,21 @@
+#ifndef NHASHMAP_H
+#define NHASHMAP_H
+
+#include "shashmap.h"
+
+using namespace std;
+
+template
+<
+class obj_type,
+class key_type_ = string,
+class hash_type = size_hash<string>,
+class alloc_type = compare_allocator<string>
+>
+struct nhashmap : public shashmap<obj_type, key_type_, hash_type, alloc_type>
+{
+ inline obj_type get_elem(key_type_ t_key);
+};
+
+#include "nhashmap.tmpl"
+#endif