| TEnumRange_Impl
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/EnumRange.h |
Include |
#include "Misc/EnumRange.h" |
template<typename EnumType>
struct TEnumRange : public NEnumRangePrivate::TEnumRange_Impl< EnumType, NEnumRangePrivate::TEnumRangeTraits< EnumType >::RangeType >
Range type for iterating over enum values. Enums should define themselves as iterable by specifying one of the ENUM_RANGE_* macros.
Example:
for (ECountedThing Val : TEnumRange<ECountedThing>()) { ... }