mp_units::operator%

Modulus operator

Synopsis

Declared in <mp-units/safe_int.h>
[[nodiscard]]
constexpr
safe_int</* implementation-defined */, ErrorPolicy>
operator%(
    constrained<U, CP> lhs,
    safe_int rhs);

Return Value

Wraps an integral type with overflow detection.

Parameters

Name Description
lhs The left operand
rhs The right operand