projects
/
junction.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Changes libcds library path
[junction.git]
/
junction
/
MapTraits.h
diff --git
a/junction/MapTraits.h
b/junction/MapTraits.h
index de83d27dcdf72fa0bf85ec14f739d582cce4509f..a34a4bc4d5a24b6076206a8c363a3e9d28330744 100644
(file)
--- a/
junction/MapTraits.h
+++ b/
junction/MapTraits.h
@@
-22,6
+22,7
@@
template <class T>
struct DefaultKeyTraits {
typedef T Key;
typedef typename turf::util::BestFit<T>::Unsigned Hash;
+ static const Key NullKey = Key(0);
static const Hash NullHash = Hash(0);
static Hash hash(T key) {
return turf::util::avalanche(Hash(key));