#include template T div_up(T x, U by) { static_assert(std::is_integral_v); static_assert(std::is_integral_v); return (x + by - 1) / by; }