Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
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
7
/**
8
* Traits class which gets the signed version of an integer type.
9
*/
10
template
<
typename
T>
11
struct
TMakeSigned
12
{
13
static_assert
(
sizeof
(T) == 0,
"Unsupported type in TMakeSigned<T>."
);
14
};
15
16
template
<
typename
T>
struct
TMakeSigned
<
const
T> {
using
Type =
const
typename
TMakeSigned
<T>::Type; };
17
template
<
typename
T>
struct
TMakeSigned
<
volatile
T> {
using
Type =
volatile
typename
TMakeSigned
<T>::Type; };
18
template
<
typename
T>
struct
TMakeSigned
<
const
volatile
T> {
using
Type =
const
volatile
typename
TMakeSigned
<T>::Type; };
19
20
template
<>
struct
TMakeSigned
<int8 > {
using
Type = int8; };
21
template
<>
struct
TMakeSigned
<uint8 > {
using
Type = int8; };
22
template
<>
struct
TMakeSigned
<int16 > {
using
Type = int16; };
23
template
<>
struct
TMakeSigned
<uint16> {
using
Type = int16; };
24
template
<>
struct
TMakeSigned
<int32 > {
using
Type = int32; };
25
template
<>
struct
TMakeSigned
<uint32> {
using
Type = int32; };
26
template
<>
struct
TMakeSigned
<int64 > {
using
Type = int64; };
27
template
<>
struct
TMakeSigned
<uint64> {
using
Type = int64; };
TMakeSigned
Definition
MakeSigned.h:12
Downloads
ArkServerAPI_NEW
ASA
AsaApi
AsaApi
Core
Public
API
UE
Templates
MakeSigned.h
Generated by
1.10.0