mirror of https://github.com/YosysHQ/yosys.git
Added pool<K>::pop()
This commit is contained in:
parent
c1af590f4e
commit
b31e77fd06
|
@ -803,6 +803,14 @@ public:
|
||||||
do_rehash();
|
do_rehash();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
K pop()
|
||||||
|
{
|
||||||
|
iterator it = begin();
|
||||||
|
K ret = *it;
|
||||||
|
erase(it);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
void swap(pool &other)
|
void swap(pool &other)
|
||||||
{
|
{
|
||||||
hashtable.swap(other.hashtable);
|
hashtable.swap(other.hashtable);
|
||||||
|
|
Loading…
Reference in New Issue