[#mp_units-operator_mod-01] = xref:mp_units.adoc[mp_units]::operator% :relfileprefix: ../ :mrdocs: Modulus operators == Synopses Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<quantity> Q, xref:mp_units/RepresentationOf.adoc[RepresentationOf<quantity_spec>] Value> requires detail::DimensionlessOne<Q::reference> && detail::InvokeResultOf<quantity_spec, std::modulus<>, Rep, const Value&> [[nodiscard]] constexpr xref:mp_units/Quantity.adoc[Quantity] auto xref:mp_units/operator_mod-0c5.adoc[operator%]( Q const& lhs, Value const& rhs); ---- [.small]#xref:mp_units/operator_mod-0c5.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<quantity> Q, xref:mp_units/RepresentationOf.adoc[RepresentationOf<quantity_spec>] Value> requires detail::DimensionlessOne<Q::reference> && detail::InvokeResultOf<quantity_spec, std::modulus<>, Rep, const Value&> [[nodiscard]] constexpr xref:mp_units/Quantity.adoc[Quantity] auto xref:mp_units/operator_mod-0c9.adoc[operator%]( Value const& lhs, Q const& rhs); ---- [.small]#xref:mp_units/operator_mod-0c9.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<quantity> Q, auto R2, typename Rep2> requires (!treat_as_floating_point<Rep>) && (!treat_as_floating_point<Rep2>) && detail::CommonlyInvocableQuantities<std::modulus<>, quantity, quantity<R2, Rep2>> [[nodiscard]] constexpr xref:mp_units/Quantity.adoc[Quantity] auto xref:mp_units/operator_mod-0d.adoc[operator%]( Q const& lhs, xref:mp_units/quantity-01.adoc[quantity<R2, Rep2>] const& rhs); ---- [.small]#xref:mp_units/operator_mod-0d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#