aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/hashlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/hashlib.h')
-rw-r--r--kernel/hashlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/hashlib.h b/kernel/hashlib.h
index 83c112f3c..1f022e473 100644
--- a/kernel/hashlib.h
+++ b/kernel/hashlib.h
@@ -985,6 +985,11 @@ public:
parents[i] = -1;
}
+ int lookup(const K &a) const
+ {
+ return ifind((*this)(a));
+ }
+
const K &find(const K &a) const
{
return (*this)[ifind((*this)(a))];