Files
2023-04-15 19:53:58 -04:00

13 lines
463 B
C++

#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 }; };