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

Function SetEnumFlagsForEmptySpec

util/draft/enum.h:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93template <class B>
94inline void SetEnumFlagsForEmptySpec(B& flags, bool allIfEmpty) {
95 if (allIfEmpty) {
96 flags.set();
97 } else {
98 flags.reset();
99 }
100}
101
102// all set by default
103template <class E, size_t N, size_t B>

Callers 1

SetEnumFlagsFunction · 0.85

Calls 2

setMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected