mp_units::utility::safe_int::operator%=

Replaces the wrapped value with its remainder after division by rhs, reacting to ErrorPolicy on division by zero.

Synopsis

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

constexpr
safe_int&
operator%=(safe_int rhs);

Return Value

a reference to *this, after the modulo operation

Parameters

NameDescription
rhsthe value to divide by