Added pool<K>::pop()
This commit is contained in:
parent
c1af590f4e
commit
b31e77fd06
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue