114 static_assert(TIsEnum<TEnum>::Value,
"Should only call this with enum types");
117 check((uint8)BeginEnumValue <= (uint8)EndEnumValue);
119 UEnum* EnumClass = StaticEnum<TEnum>();
120 check(EnumClass !=
nullptr);
122 int64 CheckIndexType = (int64)EndEnumValue;
124 if (EnumClass->IsValidEnumValue(CheckIndexType))
126 ForEachEnumValue_IncrementImpl(BeginEnumValue, EndEnumValue, Op);
130 ForEachEnumValue_ShiftImpl(BeginEnumValue, EndEnumValue, Op);