Remove duplicated operator<=>
This commit is contained in:
@@ -390,18 +390,6 @@ auto operator<=>(const VersionedMap::Key &lhs, const Node &rhs) {
|
||||
return lhs.len <=> rhs.entry->keyLen;
|
||||
}
|
||||
|
||||
auto operator<=>(const weaselab::VersionedMap::Key &lhs,
|
||||
const weaselab::VersionedMap::Key &rhs) {
|
||||
int cl = std::min(lhs.len, rhs.len);
|
||||
if (cl > 0) {
|
||||
int c = memcmp(lhs.p, rhs.p, cl);
|
||||
if (c != 0) {
|
||||
return c <=> 0;
|
||||
}
|
||||
}
|
||||
return lhs.len <=> rhs.len;
|
||||
}
|
||||
|
||||
constexpr int orderToInt(std::strong_ordering o) {
|
||||
return o == std::strong_ordering::less ? -1
|
||||
: o == std::strong_ordering::equal ? 0
|
||||
|
Reference in New Issue
Block a user