summaryrefslogtreecommitdiff
path: root/domain/src/participant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'domain/src/participant.cpp')
-rw-r--r--domain/src/participant.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/domain/src/participant.cpp b/domain/src/participant.cpp
index 8302024..d7e6b30 100644
--- a/domain/src/participant.cpp
+++ b/domain/src/participant.cpp
@@ -16,6 +16,11 @@ namespace turns::domain
{
}
+ auto participant::operator<=>(participant const & other) const noexcept -> std::partial_ordering
+ {
+ return order() <=> other.order();
+ }
+
auto participant::name() const noexcept -> Glib::ustring const &
{
return m_name;
@@ -38,4 +43,9 @@ namespace turns::domain
return *this;
}
+ auto operator<=>(Glib::RefPtr<participant> const & lhs, Glib::RefPtr<participant> const & rhs) -> std::partial_ordering
+ {
+ return *lhs <=> *rhs;
+ }
+
} // namespace turns::domain \ No newline at end of file