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

Function EqualToOneOf

util/generic/algorithm.h:212–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210// EqualToOneOf(x, "apple", "orange") means (x == "apple" || x == "orange")
211template <typename T, typename... Other>
212constexpr bool EqualToOneOf(const T& x, const Other&... values) {
213 return (... || (x == values));
214}
215
216template <typename T, typename... Other>
217constexpr size_t CountOf(const T& x, const Other&... values) {

Callers 15

IsRequestMethod · 0.85
FindOperationMethod · 0.85
MayUnquoteNewMethod · 0.85
MayUnquoteOldMethod · 0.85
UpdateLeavesExactFunction · 0.85
ValidateMethod · 0.85
EnsureNewtonIsAvailableFunction · 0.85
ValidateMethod · 0.85
DoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected