summaryrefslogtreecommitdiff
path: root/yhttpd/src/maps/nhashmap.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-21 17:01:59 +0000
committerPaul Buetow <paul@buetow.org>2010-11-21 17:01:59 +0000
commitb891420946d5269cc326d67555c6aab3db41a01a (patch)
treef6c5e7d6dbf18ec8c0ea9ec0b037251df46b4cbb /yhttpd/src/maps/nhashmap.h
parenta537e8323d932125232c305f9573daef89aef0df (diff)
added yhttpd and ycurses trunk versions
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