mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-28 10:41:12 +00:00
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:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user