Time equality comparisons
This commit is contained in:
@@ -49,6 +49,12 @@ class Time
|
||||
Time& operator=(const Time& p_time) = default;
|
||||
Time& operator=(Time&& p_time) = default;
|
||||
|
||||
[[nodiscard]]
|
||||
bool operator==(const Time& p_other) const
|
||||
{
|
||||
return m_epoch == p_other.m_epoch;
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
auto operator<=>(const Time& p_other) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user