Functions and templates that do numeric calculations or other manipulation, in some way or another.
Given a number, calculate the largest multiple of n needed to reach that number.
immutable width = 15.getMultipleOf(4); assert(width == 16); immutable width2 = 16.getMultipleOf(4, alwaysOneUp: true); assert(width2 == 20);
See Source File
Boost Software License 1.0
JR
Functions and templates that do numeric calculations or other manipulation, in some way or another.