Classes | Variables
Value traits

Classes

struct  blaze::IsEven< N >
 Compile time check whether a compile time constant expression is even.This value trait tests whether the given integral value N is an even value. In case the value is even, the value member enumeration is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType. More...
 
struct  blaze::IsMultipleOf< M, N >
 Compile time check for a multiplicative relationship of two integral values.This value trait tests whether the first given integral value M is a multiple of the second integral value N (i.e. if $ M = x*N $, where x is any positive integer in the range $ [0..\infty) $). In case the value is a multiple of N, the value member enumeration is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType. More...
 
struct  blaze::IsOdd< N >
 Compile time check whether a compile time constant expression is odd.This value trait tests whether the given integral value N is an odd value. In case the value is odd, the value member enumeration is set to 1, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to 0, Type is FalseType, and the class derives from FalseType. More...
 
struct  blaze::IsPowerOf< B, N >
 Compile time check for a power relationship of integral values to a given base.This value trait tests whether the given integral value N is a power of the base B according to the equation $ B^x = N $, where x is any positive integer in the range $ [0..\infty) $. In case the value is a power of B, the value member enumeration is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType. More...
 

Variables

template<size_t N>
constexpr bool blaze::IsEven_v = IsEven<N>::value
 Auxiliary variable template for the IsEven value trait.The IsEven_v variable template provides a convenient shortcut to access the nested value of the IsEven class template. For instance, given the compile time constant value N the following two statements are identical: More...
 
template<size_t M, size_t N>
constexpr bool blaze::IsMultipleOf_v = IsMultipleOf<M,N>::value
 Auxiliary variable template for the IsMultipleOf value trait.The IsMultipleOf_v variable template provides a convenient shortcut to access the nested value of the IsMultipleOf class template. For instance, given the compile time constant values M and N the following two statements are identical: More...
 
template<size_t N>
constexpr bool blaze::IsOdd_v = IsOdd<N>::value
 Auxiliary variable template for the IsOdd value trait.The IsOdd_v variable template provides a convenient shortcut to access the nested value of the IsOdd class template. For instance, given the compile time constant value N the following two statements are identical: More...
 
template<size_t B, size_t N>
constexpr bool blaze::IsPowerOf_v = IsPowerOf<B,N>::value
 Auxiliary variable template for the IsPowerOf value trait.The IsPowerOf_v variable template provides a convenient shortcut to access the nested value of the IsPowerOf class template. For instance, given the compile time constant values B and N the following two statements are identical: More...
 

Detailed Description

Variable Documentation

◆ IsEven_v

template<size_t N>
constexpr bool blaze::IsEven_v = IsEven<N>::value

Auxiliary variable template for the IsEven value trait.The IsEven_v variable template provides a convenient shortcut to access the nested value of the IsEven class template. For instance, given the compile time constant value N the following two statements are identical:

constexpr bool value1 = IsEven<N>::value;
constexpr bool value2 = IsEven_v<N>;

◆ IsMultipleOf_v

template<size_t M, size_t N>
constexpr bool blaze::IsMultipleOf_v = IsMultipleOf<M,N>::value

Auxiliary variable template for the IsMultipleOf value trait.The IsMultipleOf_v variable template provides a convenient shortcut to access the nested value of the IsMultipleOf class template. For instance, given the compile time constant values M and N the following two statements are identical:

constexpr bool value1 = IsMultipleOf<M,N>::value;
constexpr bool value2 = IsMultipleOf_v<M,N>;

◆ IsOdd_v

template<size_t N>
constexpr bool blaze::IsOdd_v = IsOdd<N>::value

Auxiliary variable template for the IsOdd value trait.The IsOdd_v variable template provides a convenient shortcut to access the nested value of the IsOdd class template. For instance, given the compile time constant value N the following two statements are identical:

constexpr bool value1 = IsOdd<N>::value;
constexpr bool value2 = IsOdd_v<N>;

◆ IsPowerOf_v

template<size_t B, size_t N>
constexpr bool blaze::IsPowerOf_v = IsPowerOf<B,N>::value

Auxiliary variable template for the IsPowerOf value trait.The IsPowerOf_v variable template provides a convenient shortcut to access the nested value of the IsPowerOf class template. For instance, given the compile time constant values B and N the following two statements are identical:

constexpr bool value1 = IsPowerOf<B,N>::value;
constexpr bool value2 = IsPowerOf_v<B,N>;