mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
124 files changed.
This commit is contained in:
13
Project Reboot 3.0/IsPointer.h
Normal file
13
Project Reboot 3.0/IsPointer.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
template <typename T>
|
||||
struct TIsPointer
|
||||
{
|
||||
enum { Value = false };
|
||||
};
|
||||
|
||||
template <typename T> struct TIsPointer<T*> { enum { Value = true }; };
|
||||
|
||||
template <typename T> struct TIsPointer<const T> { enum { Value = TIsPointer<T>::Value }; };
|
||||
template <typename T> struct TIsPointer< volatile T> { enum { Value = TIsPointer<T>::Value }; };
|
||||
template <typename T> struct TIsPointer<const volatile T> { enum { Value = TIsPointer<T>::Value }; };
|
||||
Reference in New Issue
Block a user