UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TEnumRange< EnumType > Struct Template Reference

#include <EnumRange.h>

+ Inheritance diagram for TEnumRange< EnumType >:

Public Types

using Super = NEnumRangePrivate::TEnumRange_Impl< EnumType, NEnumRangePrivate::TEnumRangeTraits< EnumType >::RangeType >
 

Detailed Description

template<typename EnumType>
struct TEnumRange< EnumType >

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>()) { ... }

Member Typedef Documentation

◆ Super

template<typename EnumType >
using TEnumRange< EnumType >::Super = NEnumRangePrivate::TEnumRange_Impl<EnumType, NEnumRangePrivate::TEnumRangeTraits<EnumType>::RangeType>

The documentation for this struct was generated from the following file: