cpp-btree: Remove trivial operator!= no longer required in C++20
This commit is contained in:
7
src/3rdparty/cpp-btree/btree.h
vendored
7
src/3rdparty/cpp-btree/btree.h
vendored
@@ -796,11 +796,8 @@ struct btree_iterator {
|
|||||||
}
|
}
|
||||||
void decrement_slow();
|
void decrement_slow();
|
||||||
|
|
||||||
bool operator==(const const_iterator &x) const {
|
friend bool operator==(const btree_iterator &a, const btree_iterator &b) noexcept {
|
||||||
return node == x.node && position == x.position;
|
return a.node == b.node && a.position == b.position;
|
||||||
}
|
|
||||||
bool operator!=(const const_iterator &x) const {
|
|
||||||
return node != x.node || position != x.position;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accessors for the key/value the iterator is pointing at.
|
// Accessors for the key/value the iterator is pointing at.
|
||||||
|
4
src/3rdparty/cpp-btree/btree_container.h
vendored
4
src/3rdparty/cpp-btree/btree_container.h
vendored
@@ -133,10 +133,6 @@ class btree_container {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const self_type& other) const {
|
|
||||||
return !operator==(other);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Functor retrieval
|
// Functor retrieval
|
||||||
key_compare key_comp() const { return tree_.key_comp(); }
|
key_compare key_comp() const { return tree_.key_comp(); }
|
||||||
|
|
||||||
|
7
src/3rdparty/cpp-btree/safe_btree.h
vendored
7
src/3rdparty/cpp-btree/safe_btree.h
vendored
@@ -116,11 +116,8 @@ class safe_btree_iterator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Equality/inequality operators.
|
// Equality/inequality operators.
|
||||||
bool operator==(const const_iterator &x) const {
|
friend bool operator==(const safe_btree_iterator &a, const safe_btree_iterator &b) noexcept {
|
||||||
return iter() == x.iter();
|
return a.iter() == b.iter();
|
||||||
}
|
|
||||||
bool operator!=(const const_iterator &x) const {
|
|
||||||
return iter() != x.iter();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accessors for the key/value the iterator is pointing at.
|
// Accessors for the key/value the iterator is pointing at.
|
||||||
|
Reference in New Issue
Block a user