Blaze 3.9
Integer.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_CONSTRAINTS_INTEGER_H_
36#define _BLAZE_UTIL_CONSTRAINTS_INTEGER_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// MUST_BE_INTEGER_TYPE CONSTRAINT
51//
52//=================================================================================================
53
54//*************************************************************************************************
61#define BLAZE_CONSTRAINT_MUST_BE_INTEGER_TYPE(T) \
62 static_assert( ::blaze::IsInteger_v<T>, "Non-integer type detected" )
63//*************************************************************************************************
64
65
66
67
68//=================================================================================================
69//
70// MUST_NOT_BE_INTEGER_TYPE CONSTRAINT
71//
72//=================================================================================================
73
74//*************************************************************************************************
82#define BLAZE_CONSTRAINT_MUST_NOT_BE_INTEGER_TYPE(T) \
83 static_assert( !::blaze::IsInteger_v<T>, "Integer type detected" )
84//*************************************************************************************************
85
86} // namespace blaze
87
88#endif
Header file for the IsInteger type trait.