summaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/hash.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hash.h b/src/hash.h
index aa02960..e819379 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -119,6 +119,16 @@ public:
119 119
120 return nval; 120 return nval;
121 } 121 }
122
123 _value *operator->()
124 {
125 if( bFilled == false )
126 throw HashException(
127 excodeNotFilled,
128 "No data assosiated with that key."
129 );
130 return pValue;
131 }
122}; 132};
123 133
124template<typename key, typename value, typename sizecalc, typename keyalloc, typename valuealloc, typename challoc > 134template<typename key, typename value, typename sizecalc, typename keyalloc, typename valuealloc, typename challoc >