Include mutation's version in Iterator::operator*

This commit is contained in:
2024-05-09 11:14:29 -07:00
parent e27580d31f
commit 531ccb5be9
2 changed files with 15 additions and 8 deletions

View File

@@ -104,9 +104,13 @@ struct VersionedMap {
Iterator(Iterator &&) noexcept;
Iterator &operator=(Iterator &&) noexcept;
struct VersionedMutation : Mutation {
int64_t version;
};
/** iter must not be `end()`. Memory pointed-to by return value is valid as
* long as the iterator is valid. */
Mutation operator*() const;
VersionedMutation operator*() const;
/** iter must not be `end()` */
Iterator &operator++();