Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
Inheritance Hierarchy
- TEnumRange_Impl
- TEnumRange
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/EnumRange.h |
Include | #include "Misc/EnumRange.h" |
Syntax
template<typename EnumType>
struct TEnumRange : public NEnumRangePrivate::TEnumRange_Impl< EnumType, NEnumRangePrivate::TEnumRangeTraits< EnumType >::RangeType >
Remarks
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