[#mp_units-operator_mod-0d]
= xref:mp_units.adoc[mp&lowbar;units]::operator%
:relfileprefix: ../
:mrdocs:

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;quantity&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::derived&lowbar;from&lt;quantity&gt; Q,
    auto R2,
    typename Rep2&gt;
requires (!treat&lowbar;as&lowbar;floating&lowbar;point&lt;Rep&gt;) &amp;&amp; (!treat&lowbar;as&lowbar;floating&lowbar;point&lt;Rep2&gt;) &amp;&amp;
            detail&colon;&colon;CommonlyInvocableQuantities&lt;std&colon;&colon;modulus&lt;&gt;, quantity, quantity&lt;R2, Rep2&gt;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
operator%(
    Q const& lhs,
    xref:mp_units/quantity-01.adoc[quantity&lt;R2, Rep2&gt;] const& rhs);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
