I know that C++ provides us with a ceil function. For practice, I was wondering how can we implement the ceil function in C++. The signature of the method is public static
My 5 cents:
template inline auto ceil(F const f) noexcept { auto const t(std::trunc(f)); return t + (t < f); }