Blaze
3.9
blaze
math
constraints
SameTag.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_MATH_CONSTRAINTS_SAMETAG_H_
36
#define _BLAZE_MATH_CONSTRAINTS_SAMETAG_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/typetraits/IsSame.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// MUST_HAVE_SAME_TAG CONSTRAINT
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
68
#define BLAZE_CONSTRAINT_MUST_BE_SAME_TAG(A,B) \
69
static_assert( ::blaze::IsSame_v<A,B>, "Non-matching tags detected"
)
70
//*************************************************************************************************
71
72
73
74
75
//=================================================================================================
76
//
77
// MUST_NOT_BE_SAME_TYPE CONSTRAINT
78
//
79
//=================================================================================================
80
81
//*************************************************************************************************
95
#define BLAZE_CONSTRAINT_MUST_NOT_BE_SAME_TAG(A,B) \
96
static_assert( !::blaze::IsSame_v<A,B>, "Matching tags detected"
)
97
//*************************************************************************************************
98
99
}
// namespace blaze
100
101
#endif
IsSame.h
Header file for the IsSame and IsStrictlySame type traits.
Generated by
1.9.3