Blaze
3.9
blaze
util
constraints
Rank.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_CONSTRAINTS_RANK_H_
36
#define _BLAZE_UTIL_CONSTRAINTS_RANK_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/typetraits/Rank.h
>
44
45
46
namespace
blaze {
47
48
//=================================================================================================
49
//
50
// MUST_HAVE_RANK CONSTRAINT
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
60
#define BLAZE_CONSTRAINT_MUST_HAVE_RANK(T,N) \
61
static_assert( ::blaze::Rank_v<T> == N, "Invalid rank detected"
)
62
//*************************************************************************************************
63
64
65
66
67
//=================================================================================================
68
//
69
// MUST_NOT_HAVE_RANK CONSTRAINT
70
//
71
//=================================================================================================
72
73
//*************************************************************************************************
79
#define BLAZE_CONSTRAINT_MUST_NOT_HAVE_RANK(T,N) \
80
static_assert( ::blaze::Rank_v<T> != N, "Invalid rank detected"
)
81
//*************************************************************************************************
82
83
}
// namespace blaze
84
85
#endif
Rank.h
Header file for the Rank type trait.
Generated by
1.9.3