Blaze 3.9
Classes | Variables
Value traits

Classes

struct  blaze::IsEven< N >
 Compile time check whether a compile time constant expression is even. More...
 
struct  blaze::IsMultipleOf< M, N >
 Compile time check for a multiplicative relationship of two integral values. More...
 
struct  blaze::IsOdd< N >
 Compile time check whether a compile time constant expression is odd. More...
 
struct  blaze::IsPowerOf< B, N >
 Compile time check for a power relationship of integral values to a given base. More...
 

Variables

template<size_t N>
constexpr bool blaze::IsEven_v = IsEven<N>::value
 Auxiliary variable template for the IsEven value trait. 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. More...
 
template<size_t N>
constexpr bool blaze::IsOdd_v = IsOdd<N>::value
 Auxiliary variable template for the IsOdd value trait. 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. More...
 

Detailed Description

Variable Documentation

◆ IsEven_v

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

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>;
Compile time check whether a compile time constant expression is even.
Definition: IsEven.h:75

◆ IsMultipleOf_v

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

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>;
Compile time check for a multiplicative relationship of two integral values.
Definition: IsMultipleOf.h:79

◆ IsOdd_v

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

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>;
Compile time check whether a compile time constant expression is odd.
Definition: IsOdd.h:75

◆ IsPowerOf_v

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

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>;
Compile time check for a power relationship of integral values to a given base.
Definition: IsPowerOf.h:80