Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
template <class T>
10
inline 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
14
template <size_t Size>
15
inline bool IsZero(const char* p) {
Callers
1
Y_UNIT_TEST
Function · 0.70
Calls
1
T
Class · 0.50
Tested by
no test coverage detected