![]() |
Compile time integral round up operation.The NextMultiple class template rounds up the given template argument of type T1 to the next multiple of the given template argument of type T2. In case T1 already represents a multiple of T2, the result is T1. In order for NextMultiple to be able to perform the round up operation, both arguments are required to have a nested member value. The result of the operation can be accessed via the nested member value, the resulting type is available via the nested type ValueType. More...
#include <NextMultiple.h>
Inherits blaze::Plus< T1, Modulus< Minus< T2, Modulus< T1, T2 > >, T2 > >.
Compile time integral round up operation.
The NextMultiple class template rounds up the given template argument of type T1 to the next multiple of the given template argument of type T2. In case T1 already represents a multiple of T2, the result is T1. In order for NextMultiple to be able to perform the round up operation, both arguments are required to have a nested member value. The result of the operation can be accessed via the nested member value, the resulting type is available via the nested type ValueType.
Note that both T1 and T2 are expected to represent positive integrals. The attempt to use NextMultiple with a negative or zero integral results in a compilation error!