MCPcopy Create free account
hub / github.com/catboost/catboost / operator+

Function operator+

util/datetime/base.h:695–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695constexpr TInstant operator+(const TInstant& i, const TDuration& d) noexcept {
696 return TInstant::FromValue(::NDateTimeHelpers::SumWithSaturation(i.GetValue(), d.GetValue()));
697}
698
699constexpr TInstant operator-(const TInstant& i, const TDuration& d) noexcept {
700 return TInstant::FromValue(::NDateTimeHelpers::DiffWithSaturation(i.GetValue(), d.GetValue()));

Callers

nothing calls this directly

Calls 4

SumWithSaturationFunction · 0.85
TDurationClass · 0.70
GetValueMethod · 0.45
zeroMethod · 0.45

Tested by

no test coverage detected