Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
mpl
And.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_MPL_AND_H_
36
#define _BLAZE_UTIL_MPL_AND_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/IntegralConstant.h
>
44
#include <
blaze/util/mpl/Bools.h
>
45
#include <
blaze/util/typetraits/IsSame.h
>
46
47
48
namespace
blaze {
49
50
//=================================================================================================
51
//
52
// CLASS DEFINITION
53
//
54
//=================================================================================================
55
56
//*************************************************************************************************
73
template
<
typename
T1
// Type of the first mandatory operand
74
,
typename
T2
// Type of the second mandatory operand
75
,
typename
... Ts >
// Types of the optional operands
76
using
And_t
=
77
Bool_t
<
IsSame
<
Bools
<
true
, T1::value, T2::value, (Ts::value)... >
78
,
Bools
< T1::value, T2::value, (Ts::value)...,
true
> >::value >;
79
//*************************************************************************************************
80
81
82
//*************************************************************************************************
95
template
<
typename
T1
// Type of the first mandatory operand
96
,
typename
T2
// Type of the second mandatory operand
97
,
typename
... Ts >
// Types of the optional operands
98
constexpr
bool
And_v
=
And_t
<T1,T2,Ts...>::value;
99
//*************************************************************************************************
100
101
}
// namespace blaze
102
103
#endif
Bools.h
Header file for the Bools class template.
IntegralConstant.h
Header file for the IntegralConstant class template.
IsSame.h
Header file for the IsSame and IsStrictlySame type traits.
blaze::And_v
constexpr bool And_v
Auxiliary variable template for the And_t alias.
Definition
And.h:98
blaze::And_t
Bool_t< IsSame< Bools< true, T1::value, T2::value,(Ts::value)... >, Bools< T1::value, T2::value,(Ts::value)..., true > >::value > And_t
Compile time logical AND evaluation.
Definition
And.h:76
blaze::Bool_t
IntegralConstant< bool, B > Bool_t
Compile time integral constant wrapper for bool.
Definition
IntegralConstant.h:153
blaze::Bools
Auxiliary tool for unwrapping a pack of variadic boolean values.
Definition
Bools.h:56
blaze::IsSame
Type relationship analysis.
Definition
IsSame.h:141
Generated by
1.18.0