mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 11:12:23 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
39
dependencies/reboot/Project Reboot 3.0/Decay.h
vendored
Normal file
39
dependencies/reboot/Project Reboot 3.0/Decay.h
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include "inc.h"
|
||||
|
||||
#include "RemoveReference.h"
|
||||
#include "RemoveCV.h"
|
||||
|
||||
namespace UE4Decay_Private
|
||||
{
|
||||
template <typename T>
|
||||
struct TDecayNonReference
|
||||
{
|
||||
typedef typename TRemoveCV<T>::Type Type;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct TDecayNonReference<T[]>
|
||||
{
|
||||
typedef T* Type;
|
||||
};
|
||||
|
||||
template <typename T, uint32 N>
|
||||
struct TDecayNonReference<T[N]>
|
||||
{
|
||||
typedef T* Type;
|
||||
};
|
||||
|
||||
template <typename RetType, typename... Params>
|
||||
struct TDecayNonReference<RetType(Params...)>
|
||||
{
|
||||
typedef RetType(*Type)(Params...);
|
||||
};
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
struct TDecay
|
||||
{
|
||||
typedef typename UE4Decay_Private::TDecayNonReference<typename TRemoveReference<T>::Type>::Type Type;
|
||||
};
|
||||
Reference in New Issue
Block a user