Added pool<K>::pop()

This commit is contained in:
Clifford Wolf 2015-04-07 15:07:01 +02:00
parent c1af590f4e
commit b31e77fd06
1 changed files with 8 additions and 0 deletions

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