Btree: Add copy operator for safe iterators
This commit is contained in:
8
src/3rdparty/cpp-btree/safe_btree.h
vendored
8
src/3rdparty/cpp-btree/safe_btree.h
vendored
@@ -84,6 +84,14 @@ class safe_btree_iterator {
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
safe_btree_iterator &operator=(const iterator &x) {
|
||||||
|
this->generation_ = x.generation();
|
||||||
|
this->key_ = x.key();
|
||||||
|
this->iter_ = x.iter();
|
||||||
|
this->tree_ = x.tree();
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
Tree* tree() const { return tree_; }
|
Tree* tree() const { return tree_; }
|
||||||
int64_t generation() const { return generation_; }
|
int64_t generation() const { return generation_; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user