Modulus operator
Declared in <mp-units/utility/constrained.h>
[[nodiscard]]
constexpr
constrained<decltype(lhs.value_ % rhs.value_), EP>
operator%(
constrained<T, EP> const& lhs,
constrained<U, EP> const& rhs);
A transparent wrapper that carries an error policy for domain constraint enforcement.
The return value should not be discarded.
| Name | Description |
|---|---|
| lhs | The left operand |
| rhs | The right operand |