![]() |
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 , where x is any positive integer in the range
. 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...
#include <IsPowerOf.h>
Inherits blaze::IntegralConstant< T, 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 , where x is any positive integer in the range
. 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.