Blaze 3.9
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
44
45
46namespace 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
Header file for the IsSame and IsStrictlySame type traits.