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

Method compare

util/generic/strbase.h:168–170  ·  view source on GitHub ↗

~~~ Comparison ~~~ : FAMILY0(int, compare)

Source from the content-addressed store, hash-verified

166public:
167 // ~~~ Comparison ~~~ : FAMILY0(int, compare)
168 static constexpr int compare(const TSelf& s1, const TSelf& s2) noexcept {
169 return s1.AsStringView().compare(s2.AsStringView());
170 }
171
172 static constexpr int compare(const TCharType* p, const TSelf& s2) noexcept {
173 TCharType null{0};

Callers

nothing calls this directly

Calls 4

AsStringViewMethod · 0.80
compareFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected