[#mp_units-operator_slash-0a]
= xref:mp_units.adoc[mp&lowbar;units]::operator&sol;
:relfileprefix: ../
:mrdocs:

Division operators

== Synopses

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/AssociatedUnit.adoc[AssociatedUnit] U1&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
&sol;&ast; implementation-defined &ast;&sol;
xref:mp_units/operator_slash-0d6.adoc[operator&sol;](
    U1 lhs,
    xref:mp_units/reference.adoc[reference] rhs);
----

[.small]#xref:mp_units/operator_slash-0d6.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/AssociatedUnit.adoc[AssociatedUnit] U2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
&sol;&ast; implementation-defined &ast;&sol;
xref:mp_units/operator_slash-0e7.adoc[operator&sol;](
    xref:mp_units/reference.adoc[reference] lhs,
    U2 rhs);
----

[.small]#xref:mp_units/operator_slash-0e7.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    xref:mp_units/Reference.adoc[Reference] R,
    typename Q&gt;
requires Quantity&lt;std&colon;&colon;remove&lowbar;cvref&lowbar;t&lt;Q&gt;&gt;
constexpr
auto
xref:mp_units/operator_slash-035.adoc[operator&sol;](
    R lhs,
    Q&& q) = delete;
----

[.small]#xref:mp_units/operator_slash-035.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    xref:mp_units/Reference.adoc[Reference] R,
    typename Rep&gt;
requires RepresentationOf&lt;std&colon;&colon;remove&lowbar;cvref&lowbar;t&lt;Rep&gt;, get&lowbar;quantity&lowbar;spec(R&lcub;&rcub;)&gt;
constexpr
auto
xref:mp_units/operator_slash-02.adoc[operator&sol;](
    R lhs,
    Rep&& rhs) = delete;
----

[.small]#xref:mp_units/operator_slash-02.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Q2,
    typename U2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
&sol;&ast; implementation-defined &ast;&sol;
xref:mp_units/operator_slash-0d3.adoc[operator&sol;](
    xref:mp_units/reference.adoc[reference] lhs,
    xref:mp_units/reference.adoc[reference&lt;Q2, U2&gt;] rhs);
----

[.small]#xref:mp_units/operator_slash-0d3.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::derived&lowbar;from&lt;quantity&gt; Q,
    typename Value&gt;
requires (!Quantity&lt;Value&gt;) &amp;&amp;
            (!Reference&lt;Value&gt;) &amp;&amp; detail&colon;&colon;InvokeResultOf&lt;quantity&lowbar;spec, std&colon;&colon;divides&lt;&gt;, rep, const Value&amp;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/QuantityOf.adoc[QuantityOf&lt;quantity&lowbar;spec&gt;] auto
xref:mp_units/operator_slash-03f.adoc[operator&sol;](
    Q const& q,
    Value const& val);
----

[.small]#xref:mp_units/operator_slash-03f.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Value,
    std::derived&lowbar;from&lt;quantity&gt; Q&gt;
requires (!Quantity&lt;Value&gt;) &amp;&amp;
            (!Reference&lt;Value&gt;) &amp;&amp; detail&colon;&colon;InvokeResultOf&lt;quantity&lowbar;spec, std&colon;&colon;divides&lt;&gt;, const Value&amp;, rep&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_slash-07.adoc[operator&sol;](
    Value const& val,
    Q const& q);
----

[.small]#xref:mp_units/operator_slash-07.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    std::derived&lowbar;from&lt;quantity&gt; Q,
    auto R2,
    typename Rep2&gt;
requires detail&colon;&colon;InvocableQuantities&lt;std&colon;&colon;divides&lt;&gt;, quantity, quantity&lt;R2, Rep2&gt;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_slash-04.adoc[operator&sol;](
    Q const& lhs,
    xref:mp_units/quantity-01.adoc[quantity&lt;R2, Rep2&gt;] const& rhs);
----

[.small]#xref:mp_units/operator_slash-04.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename FwdQ,
    xref:mp_units/Reference.adoc[Reference] R,
    xref:mp_units/Quantity.adoc[Quantity] Q = std::remove&lowbar;cvref&lowbar;t&lt;FwdQ&gt;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_slash-08.adoc[operator&sol;](
    FwdQ&& q,
    R rhs);
----

[.small]#xref:mp_units/operator_slash-08.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename FwdRep,
    xref:mp_units/Reference.adoc[Reference] R,
    xref:mp_units/RepresentationOf.adoc[RepresentationOf&lt;get&lowbar;quantity&lowbar;spec(R&lcub;&rcub;)&gt;] Rep = std::remove&lowbar;cvref&lowbar;t&lt;FwdRep&gt;&gt;
requires (!detail&colon;&colon;OffsetUnit&lt;decltype(get&lowbar;unit(R&lcub;&rcub;))&gt;)
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity.adoc[Quantity] auto
xref:mp_units/operator_slash-0f.adoc[operator&sol;](
    FwdRep&& lhs,
    R rhs);
----

[.small]#xref:mp_units/operator_slash-0f.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename FwdRep,
    xref:mp_units/Reference.adoc[Reference] R,
    xref:mp_units/RepresentationOf.adoc[RepresentationOf&lt;get&lowbar;quantity&lowbar;spec(R&lcub;&rcub;)&gt;] Rep = std::remove&lowbar;cvref&lowbar;t&lt;FwdRep&gt;&gt;
requires detail&colon;&colon;OffsetUnit&lt;decltype(get&lowbar;unit(R&lcub;&rcub;))&gt;
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
constexpr
auto
xref:mp_units/operator_slash-0e4.adoc[operator&sol;](
    FwdRep&& lhs,
    R rhs);
----

[.small]#xref:mp_units/operator_slash-0e4.adoc[_» more&period;&period;&period;_]#


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