TEnumRange

Range type for iterating over enum values.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TEnumRange_Impl

TEnumRange

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/EnumRange.h

Include

#include "Misc/EnumRange.h"

Syntax

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