diff options
Diffstat (limited to 'src/hash.h')
-rw-r--r-- | src/hash.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 | ||
124 | template<typename key, typename value, typename sizecalc, typename keyalloc, typename valuealloc, typename challoc > | 134 | template<typename key, typename value, typename sizecalc, typename keyalloc, typename valuealloc, typename challoc > |