Add efficient firstGeq overload for latestVersion
This commit is contained in:
@@ -158,6 +158,11 @@ struct __attribute__((__visibility__("default"))) VersionedMap {
|
||||
void firstGeq(const Key *key, const int64_t *version, Iterator *iterator,
|
||||
int count) const;
|
||||
|
||||
/** Equivalent to `firstGeq(key, version, iterator, 1)` where each element in
|
||||
* `version` is the latest version, but more efficient.
|
||||
*/
|
||||
void firstGeq(const Key *key, Iterator *iterator, int count) const;
|
||||
|
||||
/** Returns an iterator to the first mutation visible in the view at
|
||||
* `version`, or `end()` if none exists. Thread-safe as long as `version` is
|
||||
* not concurrently invalidated by `setOldestVersion`. */
|
||||
|
Reference in New Issue
Block a user