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

Function IsZero

util/draft/memory.h:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9template <class T>
10inline bool IsZero(const T* begin, const T* end) {
11 return std::find_if(begin, end, [](const T& other) { return other != T(0); }) == end;
12}
13
14template <size_t Size>
15inline bool IsZero(const char* p) {

Callers 1

Y_UNIT_TESTFunction · 0.70

Calls 1

TClass · 0.50

Tested by

no test coverage detected