cpp/numeric/math/div

Computes both the quotient and the remainder of the division of the numerator by the denominator.

Return value
If both the remainder and the quotient can be represented as objects of the corresponding type (,, , std, respectively), returns both as an object of type , , , defined as follows:

If either the remainder or the quotient cannot be represented, the behavior is undefined.