Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
template<typename T >
static kInline std::enable_if<std::is_unsigned<T>::value, T>::type kDivideFloor ( const T &  a,
const T &  b 
)
static

Calculates the quotient of two unsigned integers, rounding down.

This method requires C++ 2011; accordingly, it cannot be used in inline functions that may be processed by C compilers or older C++ compilers.

Parameters
aDividend.
bDivisor.
Returns
Quotient, rounded down.