aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-03-25 21:13:52 +0000
committerMike Buland <eichlan@xagasoft.com>2007-03-25 21:13:52 +0000
commit58d5ac863b8f94f74b20edee7604f33cca186b2f (patch)
tree1e3ad911361d78d89a0a17038cb41cf26e2c2132 /src/hash.h
parent76185dca1136f9542e75361961c2e7362d8b670b (diff)
downloadlibbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.tar.gz
libbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.tar.bz2
libbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.tar.xz
libbu++-58d5ac863b8f94f74b20edee7604f33cca186b2f.zip
Some more updates to Hash and FString.
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 >