1
0
mirror of synced 2026-04-25 20:02:10 +00:00

Added pool<K>::pop()

This commit is contained in:
Clifford Wolf
2015-04-07 15:07:01 +02:00
parent c1af590f4e
commit b31e77fd06

View File

@@ -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);