Improved pop_front() in the Double_map

This commit is contained in:
Laurent Rineau 2003-01-31 13:45:23 +00:00
parent a6ec4e433e
commit 1770a8b0ec
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ public :
void pop_front()
{
erase(front()->second);
reverse_iterator rit = reverse_func.begin();
direct_iterator pos = direct_func.find(rit->second);
assert(pos != direct_func.end());
direct_func.erase(pos);
reverse_func.erase(rit);
}
class Second_is {