sstables: use default generated operator==

C++20 compiler is able to generate defaulted operator== and
operator!=. and the default generated operators behaves exactly
the same as the ones crafted by us. so let's it do its job.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes #13614
This commit is contained in:
Kefu Chai
2023-04-21 16:11:34 +08:00
committed by Botond Dénes
parent 10c1f1dc80
commit 51fc0bc698

View File

@@ -39,8 +39,7 @@ public:
return partition_key::from_exploded_view(explode(s));
}
bool operator==(const key_view& k) const { return k._bytes == _bytes; }
bool operator!=(const key_view& k) const { return !(k == *this); }
bool operator==(const key_view& k) const = default;
bool empty() const { return _bytes.empty(); }