Assorted minor improvements to the cleanup system.

This commit is contained in:
John McCall
2018-08-22 01:26:37 -04:00
parent 1155adeef1
commit fae2ec3b38
5 changed files with 43 additions and 33 deletions

View File

@@ -366,10 +366,14 @@ public:
void pop(stable_iterator stable_iter) {
iterator iter = find(stable_iter);
checkIterator(iter);
#ifndef NDEBUG
while (Begin != iter.Ptr) {
pop();
checkIterator(iter);
}
#else
Begin = iter.Ptr;
#endif
}
};