Divides a floating-point value by a safe_int.
Declared in <mp-units/utility/safe_int.h>
template<typename U>
requires treat_as_floating_point<U>
[[nodiscard]]
constexpr
auto
operator/(
U lhs,
safe_int rhs)
requires requires { lhs / static_cast<U>(rhs.value_); };
This function is a hidden friend of safe_int, declared only inside that class: it can be found only through argument-dependent lookup.
the quotient of lhs and the wrapped value
The return value should not be discarded.
| Name | Description |
|---|---|
| U | a floating-point-like type (treat_as_floating_point<U> is true) |
| Name | Description |
|---|---|
| lhs | the floating-point value |
| rhs | the safe_int to divide by |