diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-03-25 21:13:52 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-25 21:13:52 +0000 |
commit | 58d5ac863b8f94f74b20edee7604f33cca186b2f (patch) | |
tree | 1e3ad911361d78d89a0a17038cb41cf26e2c2132 /src/hash.h | |
parent | 76185dca1136f9542e75361961c2e7362d8b670b (diff) | |
download | libbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.tar.gz libbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.tar.bz2 libbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.tar.xz libbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.zip |
Some more updates to Hash and FString.
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 > |