TEnumRange

Range type for iterating over enum values.

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss