UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MakeSigned.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 static_assert(sizeof(T) == 0, "Unsupported type in TMakeSigned<T>.");
14};
15
16template <typename T> struct TMakeSigned<const T> { using Type = const typename TMakeSigned<T>::Type; };
17template <typename T> struct TMakeSigned< volatile T> { using Type = volatile typename TMakeSigned<T>::Type; };
18template <typename T> struct TMakeSigned<const volatile T> { using Type = const volatile typename TMakeSigned<T>::Type; };
19
20template <> struct TMakeSigned<int8 > { using Type = int8; };
21template <> struct TMakeSigned<uint8 > { using Type = int8; };
22template <> struct TMakeSigned<int16 > { using Type = int16; };
23template <> struct TMakeSigned<uint16> { using Type = int16; };
24template <> struct TMakeSigned<int32 > { using Type = int32; };
25template <> struct TMakeSigned<uint32> { using Type = int32; };
26template <> struct TMakeSigned<int64 > { using Type = int64; };
27template <> struct TMakeSigned<uint64> { using Type = int64; };
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::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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
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
const typename TMakeSigned< T >::Type Type
Definition MakeSigned.h:16
const volatile typename TMakeSigned< T >::Type Type
Definition MakeSigned.h:18
int16 Type
Definition MakeSigned.h:22
int32 Type
Definition MakeSigned.h:24
int64 Type
Definition MakeSigned.h:26
int8 Type
Definition MakeSigned.h:20
int16 Type
Definition MakeSigned.h:23
int32 Type
Definition MakeSigned.h:25
int64 Type
Definition MakeSigned.h:27
int8 Type
Definition MakeSigned.h:21
volatile typename TMakeSigned< T >::Type Type
Definition MakeSigned.h:17
Definition MakeSigned.h:12