UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Decay.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
#include "
Templates/RemoveReference.h
"
7
#include <type_traits>
8
9
namespace
UE::Core::Private::Decay
10
{
11
template
<
typename
T>
12
struct
TDecayNonReference
13
{
14
using
Type
= std::remove_cv_t<T>;
15
};
16
17
template
<
typename
T>
18
struct
TDecayNonReference
<T[]>
19
{
20
typedef
T*
Type
;
21
};
22
23
template
<
typename
T, u
int
32 N>
24
struct
TDecayNonReference
<T[N]>
25
{
26
typedef
T*
Type
;
27
};
28
29
template
<
typename
RetType,
typename
... Params>
30
struct
TDecayNonReference
<RetType(Params...)>
31
{
32
typedef
RetType (*
Type
)(Params...);
33
};
34
}
35
42
template
<
typename
T>
43
struct
TDecay
44
{
45
typedef
typename
UE::Core::Private::Decay::TDecayNonReference<typename TRemoveReference<T>::Type
>
::Type
Type
;
46
};
CoreTypes.h
RemoveReference.h
UE::Core::Private::Decay
Definition
Decay.h:10
TDecay
Definition
Decay.h:44
TDecay::Type
UE::Core::Private::Decay::TDecayNonReference< typenameTRemoveReference< T >::Type >::Type Type
Definition
Decay.h:45
UE::Core::Private::Decay::TDecayNonReference< T[N]>::Type
T * Type
Definition
Decay.h:26
UE::Core::Private::Decay::TDecayNonReference< T[]>::Type
T * Type
Definition
Decay.h:20
UE::Core::Private::Decay::TDecayNonReference
Definition
Decay.h:13
UE::Core::Private::Decay::TDecayNonReference::Type
std::remove_cv_t< T > Type
Definition
Decay.h:14
Engine
Source
Runtime
Core
Public
Templates
Decay.h
Generated by
1.9.8