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

Method operator==

util/generic/buffer.h:229–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 }
228
229 bool operator==(const TBuffer& other) const noexcept {
230 if (Empty()) {
231 return other.Empty();
232 }
233 return Size() == other.Size() && 0 == std::memcmp(Data(), other.Data(), Size());
234 }
235
236 bool operator!=(const TBuffer& other) const noexcept {
237 return !(*this == other);

Callers

nothing calls this directly

Calls 7

memcmpFunction · 0.85
DataClass · 0.70
EmptyFunction · 0.50
SizeFunction · 0.50
EmptyMethod · 0.45
SizeMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected