Remove unused TIsArithmetic

This commit is contained in:
2023-07-18 18:43:10 +02:00
parent eea0b37dc3
commit b26b9302e0
+2 -26
View File
@@ -12,7 +12,7 @@
namespace THelpers
{
template <typename T, bool bIsTriviallyTriviallyDestructible = __is_enum(T)>
template <typename T, bool IsTriviallyDestructible = __is_enum(T)>
struct TIsTriviallyDestructibleImpl
{
enum { Value = true };
@@ -96,7 +96,7 @@ struct TOr<>
template<typename Type>
struct TNot
{
enum { Value = !Type::Value };
enum { Value = !Type::Value };
};
////////////////////////////////////////////////////////////////////////////////////
@@ -147,30 +147,6 @@ struct TIsEnum
////////////////////////////////////////////////////////////////////////////////////
// Checks if a type is arithmetic.
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<int8> { enum { Value = true }; };
template<> struct TIsArithmetic<int16> { 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<char> { enum { Value = true }; };
template<> struct TIsArithmetic<Char> { 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 }; };
////////////////////////////////////////////////////////////////////////////////////
// Checks if a type is POD (plain old data type).
template<typename T>