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:
27
dependencies/reboot/Project Reboot 3.0/IsArithmetic.h
vendored
Normal file
27
dependencies/reboot/Project Reboot 3.0/IsArithmetic.h
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "inc.h"
|
||||
|
||||
template <typename T>
|
||||
struct TIsArithmetic
|
||||
{
|
||||
enum { Value = false };
|
||||
};
|
||||
|
||||
template <> struct TIsArithmetic<float> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<double> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<long double> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<uint8> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<uint16> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<uint32> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<uint64> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<char> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<short int> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<int32> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<int64> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<bool> { enum { Value = true }; };
|
||||
template <> struct TIsArithmetic<wchar_t> { enum { Value = true }; };
|
||||
|
||||
template <typename T> struct TIsArithmetic<const T> { enum { Value = TIsArithmetic<T>::Value }; };
|
||||
template <typename T> struct TIsArithmetic< volatile T> { enum { Value = TIsArithmetic<T>::Value }; };
|
||||
template <typename T> struct TIsArithmetic<const volatile T> { enum { Value = TIsArithmetic<T>::Value }; };
|
||||
Reference in New Issue
Block a user