HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SYS_TypeDecorate.h File Reference
#include "SYS_API.h"
#include <type_traits>
+ Include dependency graph for SYS_TypeDecorate.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYS_DECLARE_IS_ARITHMETIC(T)
 Declare a type as arithmetic. More...
 
#define SYS_DECLARE_IS_POD(T)
 Declare a type as POD. More...
 

Detailed Description

Provides facilities to decorate types that can then be tested using type traits.

Definition in file SYS_TypeDecorate.h.

Macro Definition Documentation

#define SYS_DECLARE_IS_ARITHMETIC (   T)
Value:
namespace std { \
template<> struct is_arithmetic<T> : public true_type {}; \
} \
/* This remains for HDK compatibility */ \
namespace hboost { \
template <typename S> struct is_arithmetic; \
template<> struct is_arithmetic<T> : public std::true_type {}; \
} \

Declare a type as arithmetic.

Definition at line 23 of file SYS_TypeDecorate.h.

#define SYS_DECLARE_IS_POD (   T)
Value:
namespace std { \
template<> struct is_pod<T> : public true_type {}; \
} \
/* This remains for HDK compatibility */ \
namespace hboost { \
template <typename S> struct is_pod; \
template<> struct is_pod<T> : public std::true_type {}; \
} \

Declare a type as POD.

Definition at line 35 of file SYS_TypeDecorate.h.