13 #ifndef TINYMPL_MODULUS_HPP
14 #define TINYMPL_MODULUS_HPP
16 #include <type_traits>
26 template<
class A,
class B>
struct modulus :
27 std::integral_constant<
28 typename std::common_type<
29 typename A::value_type,
30 typename B::value_type>::type,
36 #endif // TINYMPL_MODULUS_HPP
Computes A%B where A and B are compile time constants.
Definition: modulus.hpp:26