runtime_view: internal changes

This commit is contained in:
Michele Caini
2024-05-16 14:16:13 +02:00
parent ffd3f950f3
commit 4f58be5762

View File

@@ -49,7 +49,8 @@ public:
}
runtime_view_iterator &operator++() {
while(++it != (*pools)[0]->end() && !valid()) {}
++it;
for(const auto last = (*pools)[0]->end(); it != last && !valid(); ++it) {}
return *this;
}
@@ -59,7 +60,8 @@ public:
}
runtime_view_iterator &operator--() {
while(--it != (*pools)[0]->begin() && !valid()) {}
--it;
for(const auto first = (*pools)[0]->begin(); it != first && !valid(); --it) {}
return *this;
}