summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/hashlib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/hashlib.h b/kernel/hashlib.h
index 94b573e4..7cea195d 100644
--- a/kernel/hashlib.h
+++ b/kernel/hashlib.h
@@ -803,6 +803,14 @@ public:
do_rehash();
}
+ K pop()
+ {
+ iterator it = begin();
+ K ret = *it;
+ erase(it);
+ return ret;
+ }
+
void swap(pool &other)
{
hashtable.swap(other.hashtable);