#include #include namespace ore { int detail::EnumUtil::FindIndex(int value, const IterRange& values) { auto it = std::find_if(values.begin(), values.end(), [value](int x) { return value == x; }); if (it == values.end()) return -1; return static_cast(it - values.begin()); } } // namespace ore