UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MakeUnsigned.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 TMakeUnsigned<T>.");
14};
15
16template <typename T> struct TMakeUnsigned<const T> { using Type = const typename TMakeUnsigned<T>::Type; };
17template <typename T> struct TMakeUnsigned< volatile T> { using Type = volatile typename TMakeUnsigned<T>::Type; };
18template <typename T> struct TMakeUnsigned<const volatile T> { using Type = const volatile typename TMakeUnsigned<T>::Type; };
19
20template <> struct TMakeUnsigned<int8 > { using Type = uint8; };
21template <> struct TMakeUnsigned<uint8 > { using Type = uint8; };
22template <> struct TMakeUnsigned<int16 > { using Type = uint16; };
23template <> struct TMakeUnsigned<uint16> { using Type = uint16; };
24template <> struct TMakeUnsigned<int32 > { using Type = uint32; };
25template <> struct TMakeUnsigned<uint32> { using Type = uint32; };
26template <> struct TMakeUnsigned<int64 > { using Type = uint64; };
27template <> struct TMakeUnsigned<uint64> { using Type = uint64; };
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 TMakeUnsigned< T >::Type Type
Definition MakeUnsigned.h:16
const volatile typename TMakeUnsigned< T >::Type Type
Definition MakeUnsigned.h:18
uint16 Type
Definition MakeUnsigned.h:22
uint32 Type
Definition MakeUnsigned.h:24
uint64 Type
Definition MakeUnsigned.h:26
uint8 Type
Definition MakeUnsigned.h:20
uint16 Type
Definition MakeUnsigned.h:23
uint32 Type
Definition MakeUnsigned.h:25
uint64 Type
Definition MakeUnsigned.h:27
uint8 Type
Definition MakeUnsigned.h:21
volatile typename TMakeUnsigned< T >::Type Type
Definition MakeUnsigned.h:17
Definition MakeUnsigned.h:12