[#mp_units-quantity-01-operator_mod_eq] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::operator%= :relfileprefix: ../../ :mrdocs: Modulus assignment operator == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< auto R2, typename Rep2> requires (!treat_as_floating_point<rep>) && (implicitly_convertible(get_quantity_spec(R2), quantity_spec)) && detail::ValuePreservingConversion<get_unit(R2), Rep2, unit, rep> && requires(rep& a, const Rep2 b) { { a %= b } ‐> std::same_as<rep&>; } constexpr xref:mp_units/quantity-01.adoc[quantity]& operator%=(xref:mp_units/quantity-01.adoc[quantity<R2, Rep2>] const& other) &; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#