Blaze 3.9
ResultType.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_CONSTRAINTS_RESULTTYPE_H_
36#define _BLAZE_MATH_CONSTRAINTS_RESULTTYPE_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
44
45
46namespace blaze {
47
48//=================================================================================================
49//
50// MUST_HAVE_RESULT_TYPE CONSTRAINT
51//
52//=================================================================================================
53
54//*************************************************************************************************
61#define BLAZE_CONSTRAINT_MUST_HAVE_RESULT_TYPE(T) \
62 static_assert( ::blaze::HasResultType_v<T>, "Type without result type detected" )
63//*************************************************************************************************
64
65
66
67
68//=================================================================================================
69//
70// MUST_NOT_HAVE_RESULT_TYPE CONSTRAINT
71//
72//=================================================================================================
73
74//*************************************************************************************************
81#define BLAZE_CONSTRAINT_MUST_NOT_HAVE_RESULT_TYPE(T) \
82 static_assert( !::blaze::HasResultType_v<T>, "Type with result type detected" )
83//*************************************************************************************************
84
85} // namespace blaze
86
87#endif
Header file for the HasResultType type trait.