@@ -167,6 +167,8 @@ class TTimeBase {
167
167
return Value_;
168
168
}
169
169
170
+ auto operator <=>(const TTimeBase&) const = default ;
171
+
170
172
protected:
171
173
TValue Value_; // microseconds count
172
174
};
@@ -581,36 +583,6 @@ ::NPrivate::TPrintableLocalTime<true, true> FormatIsoLocalUpToSeconds(TInstant i
581
583
::NPrivate::TPrintableLocalTime<true , false > FormatLocalUpToSeconds (TInstant instant);
582
584
// /@}
583
585
584
- template <class S >
585
- static constexpr bool operator <(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
586
- return l.GetValue () < r.GetValue ();
587
- }
588
-
589
- template <class S >
590
- static constexpr bool operator <=(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
591
- return l.GetValue () <= r.GetValue ();
592
- }
593
-
594
- template <class S >
595
- static constexpr bool operator ==(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
596
- return l.GetValue () == r.GetValue ();
597
- }
598
-
599
- template <class S >
600
- static constexpr bool operator !=(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
601
- return l.GetValue () != r.GetValue ();
602
- }
603
-
604
- template <class S >
605
- static constexpr bool operator >(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
606
- return l.GetValue () > r.GetValue ();
607
- }
608
-
609
- template <class S >
610
- static constexpr bool operator >=(const TTimeBase<S>& l, const TTimeBase<S>& r) noexcept {
611
- return l.GetValue () >= r.GetValue ();
612
- }
613
-
614
586
namespace NDateTimeHelpers {
615
587
template <typename T>
616
588
static constexpr T SumWithSaturation (T a, T b) {
0 commit comments