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

Method HasFlag

util/generic/flags.h:171–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170
171 constexpr bool HasFlag(Enum value) const {
172 return (Value_ & static_cast<TInt>(value)) == static_cast<TInt>(value);
173 }
174
175 constexpr bool HasFlags(TFlags flags) const {
176 return (Value_ & flags.Value_) == flags.Value_;

Callers 1

TestEnumFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestEnumFunction · 0.64