42 #ifndef BPP_NUMERIC_INTEGERTOOLS_H
43 #define BPP_NUMERIC_INTEGERTOOLS_H
45 #include <type_traits>
51 namespace IntegerTools
57 static_assert (std::is_integral<T>::value,
"T must be an integral type");
65 static_assert (std::is_integral<T>::value,
"T must be an integral type");
73 static_assert (std::is_integral<T>::value,
"T must be an integral type");
81 static_assert (std::is_integral<T>::value,
"T must be an integral type");
82 return divisor *
divideUp(n, divisor);