summaryrefslogtreecommitdiff
path: root/node/Hashtable.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-17 14:21:09 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-17 14:21:09 -0700
commitb9e1d53d7ac4e8d19520e3063b194ee01f550198 (patch)
tree9aad6b77f36c7f221f5d6b660e6522fc3cfaae02 /node/Hashtable.hpp
parentab0806a036485979d60015a22a8e8831b68643a2 (diff)
downloadinfinitytier-b9e1d53d7ac4e8d19520e3063b194ee01f550198.tar.gz
infinitytier-b9e1d53d7ac4e8d19520e3063b194ee01f550198.zip
Minor cleanup.
Diffstat (limited to 'node/Hashtable.hpp')
-rw-r--r--node/Hashtable.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/node/Hashtable.hpp b/node/Hashtable.hpp
index b702f608..eff5b62a 100644
--- a/node/Hashtable.hpp
+++ b/node/Hashtable.hpp
@@ -119,7 +119,7 @@ public:
_s(0)
{
if (!_t)
- throw std::bad_alloc();
+ throw ZT_EXCEPTION_OUT_OF_MEMORY;
for(unsigned long i=0;i<bc;++i)
_t[i] = (_Bucket *)0;
}
@@ -130,7 +130,7 @@ public:
_s(ht._s)
{
if (!_t)
- throw std::bad_alloc();
+ throw ZT_EXCEPTION_OUT_OF_MEMORY;
for(unsigned long i=0;i<_bc;++i)
_t[i] = (_Bucket *)0;
for(unsigned long i=0;i<_bc;++i) {
@@ -359,12 +359,12 @@ public:
/**
* @return Number of entries
*/
- inline unsigned long size() const throw() { return _s; }
+ inline unsigned long size() const { return _s; }
/**
* @return True if table is empty
*/
- inline bool empty() const throw() { return (_s == 0); }
+ inline bool empty() const { return (_s == 0); }
private:
template<typename O>