UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IsTEnumAsByte.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
9template <class InEnumType>
10class TEnumAsByte;
11
12template <typename T> inline constexpr bool TIsTEnumAsByte_V = false;
13template <typename T> inline constexpr bool TIsTEnumAsByte_V< TEnumAsByte<T>> = true;
14template <typename T> inline constexpr bool TIsTEnumAsByte_V<const TEnumAsByte<T>> = true;
15template <typename T> inline constexpr bool TIsTEnumAsByte_V< volatile TEnumAsByte<T>> = true;
16template <typename T> inline constexpr bool TIsTEnumAsByte_V<const volatile TEnumAsByte<T>> = true;
17
18template <typename T>
20{
21 static constexpr bool Value = TIsTEnumAsByte_V<T>;
22 static constexpr bool value = Value;
23};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
constexpr bool TIsTEnumAsByte_V
Definition IsTEnumAsByte.h:12
Definition EnumAsByte.h:22
Definition IsTEnumAsByte.h:20
static constexpr bool value
Definition IsTEnumAsByte.h:22
static constexpr bool Value
Definition IsTEnumAsByte.h:21