mp_units::utility::detail::operator/

Division operator

Synopsis

Declared in <mp-units/utility/safe_int.h>

[[nodiscard]]
constexpr
safe_int<integral_op_result_t<T, U>, EP>
operator/(
    safe_int<T, EP> lhs,
    safe_int<U, EP> rhs);

Return Value

Wraps an integral type with overflow detection.

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand