Implement Iterator

This commit is contained in:
2024-05-08 16:54:36 -07:00
parent e2dde59d19
commit 4482f93895
2 changed files with 197 additions and 7 deletions

View File

@@ -135,6 +135,7 @@ struct VersionedMap {
struct Impl;
private:
friend struct VersionedMap;
Impl *impl = nullptr;
};
@@ -156,7 +157,7 @@ struct VersionedMap {
Iterator begin(int64_t version) const;
/** The "past-the-end" iterator. */
Iterator end() const;
Iterator end(int64_t version) const;
/** Returns the memory usage in bytes. */
int64_t getBytes() const;