Computes the quotient of dividing lhs by rhs.
Declared in <mp-units/utility/safe_int.h>
[[nodiscard]]
constexpr
safe_int</* implementation-defined */, ErrorPolicy>
operator/(
safe_int lhs,
safe_int rhs);
the result of lhs / rhs; triggers ErrorPolicy::on_overflow on overflow or division by zero
The return value should not be discarded.
| Name | Description |
|---|---|
| lhs | the dividend |
| rhs | the divisor |