laddr_t laddr,
extent_types_t type)
: len(len), laddr(laddr), type(type) {}
+
+ bool operator==(const backref_map_val_t& rhs) const noexcept {
+ return len == rhs.len && laddr == rhs.laddr;
+ }
};
-WRITE_EQ_OPERATORS_2(
- backref_map_val_t,
- len,
- laddr);
std::ostream& operator<<(std::ostream &out, const backref_map_val_t& val);
#include "crimson/osd/scheduler/scheduler.h"
#include "common/config.h"
-#include "include/cmp.h"
#include "common/ceph_context.h"
struct client_profile_id_t {
client_id_t client_id;
profile_id_t profile_id;
+ auto operator<=>(const client_profile_id_t&) const = default;
};
-WRITE_EQ_OPERATORS_2(client_profile_id_t, client_id, profile_id)
-WRITE_CMP_OPERATORS_2(client_profile_id_t, client_id, profile_id)
-
struct scheduler_id_t {
scheduler_class_t class_id;
client_profile_id_t client_profile_id;
+ auto operator<=>(const scheduler_id_t&) const = default;
};
-WRITE_EQ_OPERATORS_2(scheduler_id_t, class_id, client_profile_id)
-WRITE_CMP_OPERATORS_2(scheduler_id_t, class_id, client_profile_id)
-
/**
* Scheduler implementation based on mclock.
*