mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
utils/chunked_managed_vector: use operator<=> when appropriate
instead of crafting 4 operators manually, just delegate it to <=>. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes #13698
This commit is contained in:
@@ -240,17 +240,8 @@ public:
|
||||
bool operator==(iterator_type x) const {
|
||||
return _i == x._i;
|
||||
}
|
||||
bool operator<(iterator_type x) const {
|
||||
return _i < x._i;
|
||||
}
|
||||
bool operator<=(iterator_type x) const {
|
||||
return _i <= x._i;
|
||||
}
|
||||
bool operator>(iterator_type x) const {
|
||||
return _i > x._i;
|
||||
}
|
||||
bool operator>=(iterator_type x) const {
|
||||
return _i >= x._i;
|
||||
std::strong_ordering operator<=>(iterator_type x) const {
|
||||
return _i <=> x._i;
|
||||
}
|
||||
friend class chunked_managed_vector;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user