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

Function PopCount

library/cpp/yt/misc/enum-inl.h:432–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430template <typename E>
431 requires TEnumTraits<E>::IsBitEnum
432constexpr int PopCount(E value)
433{
434 return std::popcount(static_cast<std::underlying_type_t<E>>(value));
435}
436
437////////////////////////////////////////////////////////////////////////////////
438

Callers 1

TESTFunction · 0.85

Calls 1

popcountFunction · 0.50

Tested by

no test coverage detected