MCPcopy Create free account
hub / github.com/catboost/catboost / Equals

Function Equals

library/cpp/yt/yson_string/string-inl.h:14–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13template <typename TLeft, typename TRight>
14bool Equals(const TLeft& lhs, const TRight& rhs)
15{
16 auto lhsNull = !lhs.operator bool();
17 auto rhsNull = !rhs.operator bool();
18 if (lhsNull != rhsNull) {
19 return false;
20 }
21 if (lhsNull && rhsNull) {
22 return true;
23 }
24 return
25 lhs.AsStringBuf() == rhs.AsStringBuf() &&
26 lhs.GetType() == rhs.GetType();
27}
28
29class TYsonStringHolder
30 : public TSharedRangeHolder

Callers 1

operator ==Function · 0.70

Calls 3

boolMethod · 0.45
AsStringBufMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected