diff options
Diffstat (limited to '')
-rw-r--r-- | src/hash.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/hash.cpp b/src/hash.cpp index 14be208..0241753 100644 --- a/src/hash.cpp +++ b/src/hash.cpp | |||
@@ -1,5 +1,25 @@ | |||
1 | #include "hash.h" | 1 | #include "hash.h" |
2 | 2 | ||
3 | template<> uint32_t __calcHashCode<const int>( const int k ) | ||
4 | { | ||
5 | return k; | ||
6 | } | ||
7 | |||
8 | template<> bool __cmpHashKeys<const int>( const int a, const int b ) | ||
9 | { | ||
10 | return a == b; | ||
11 | } | ||
12 | |||
13 | template<> uint32_t __calcHashCode<int>( int k ) | ||
14 | { | ||
15 | return k; | ||
16 | } | ||
17 | |||
18 | template<> bool __cmpHashKeys<int>( int a, int b ) | ||
19 | { | ||
20 | return a == b; | ||
21 | } | ||
22 | |||
3 | template<> | 23 | template<> |
4 | uint32_t __calcHashCode<const char *>( const char * k ) | 24 | uint32_t __calcHashCode<const char *>( const char * k ) |
5 | { | 25 | { |