UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IsArithmetic.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
10template <typename T>
12{
13 enum { Value = false };
14};
15
16template <> struct TIsArithmetic<float> { enum { Value = true }; };
17template <> struct TIsArithmetic<double> { enum { Value = true }; };
18template <> struct TIsArithmetic<long double> { enum { Value = true }; };
19template <> struct TIsArithmetic<uint8> { enum { Value = true }; };
20template <> struct TIsArithmetic<uint16> { enum { Value = true }; };
21template <> struct TIsArithmetic<uint32> { enum { Value = true }; };
22template <> struct TIsArithmetic<uint64> { enum { Value = true }; };
23template <> struct TIsArithmetic<int8> { enum { Value = true }; };
24template <> struct TIsArithmetic<int16> { enum { Value = true }; };
25template <> struct TIsArithmetic<int32> { enum { Value = true }; };
26template <> struct TIsArithmetic<int64> { enum { Value = true }; };
27template <> struct TIsArithmetic<long> { enum { Value = true }; };
28template <> struct TIsArithmetic<unsigned long> { enum { Value = true }; };
29template <> struct TIsArithmetic<bool> { enum { Value = true }; };
30template <> struct TIsArithmetic<WIDECHAR> { enum { Value = true }; };
31template <> struct TIsArithmetic<ANSICHAR> { enum { Value = true }; };
32
33template <typename T> struct TIsArithmetic<const T> { enum { Value = TIsArithmetic<T>::Value }; };
34template <typename T> struct TIsArithmetic< volatile T> { enum { Value = TIsArithmetic<T>::Value }; };
35template <typename T> struct TIsArithmetic<const volatile T> { enum { Value = TIsArithmetic<T>::Value }; };
FPlatformTypes::int16 int16
A 16-bit signed integer.
Definition Platform.h:1123
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
FPlatformTypes::WIDECHAR WIDECHAR
A wide character. Normally a signed type.
Definition Platform.h:1133
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
uint8_t uint8
Definition binka_ue_file_header.h:8
uint16_t uint16
Definition binka_ue_file_header.h:7
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition IsArithmetic.h:12
@ Value
Definition IsArithmetic.h:13