Implement getBytes()

This commit is contained in:
andrew committed 2024-05-10 12:10:00 -07:00
1 parent c65d874c07
commit f5920ba6c7
5 files changed
+469 -36

No files matched your search

+2 -1
View File
@@ -170,7 +170,8 @@ struct VersionedMap {
/** The "past-the-end" iterator. */
Iterator end(int64_t version) const;
/** Returns the memory usage in bytes. */
/** Returns the memory usage in bytes. Does not include memory used by
* iterators. */
int64_t getBytes() const;
/** Map starts with no mutations, with `getOldestVersion()` == `getVersion()`