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

Division operators

== Synopses

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_slash-05.adoc[operator&sol;](
    U lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
auto
xref:mp_units/operator_slash-0f4.adoc[operator&sol;](
    U lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs)
requires requires &lcub; lhs &sol; static&lowbar;cast&lt;U&gt;(rhs&period;value&lowbar;)&semi; &rcub;;
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&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"]
----
&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"]
----
&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;_]#

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_slash-0b2.adoc[operator&sol;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    U rhs);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
auto
xref:mp_units/operator_slash-0fb.adoc[operator&sol;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    U rhs)
requires requires &lcub; static&lowbar;cast&lt;U&gt;(lhs&period;value&lowbar;) &sol; rhs&semi; &rcub;;
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_slash-0f1.adoc[operator&sol;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_slash-09.adoc[operator&sol;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] rhs);
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/constrained.adoc[constrained&lt;decltype(std&colon;&colon;declval&lt;T&gt;() &sol; std&colon;&colon;declval&lt;U&gt;()), CP&gt;]
xref:mp_units/operator_slash-0e1.adoc[operator&sol;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] const& rhs);
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_slash-01.adoc[operator&sol;](
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/constrained.adoc[constrained&lt;decltype(std&colon;&colon;declval&lt;U&gt;() &sol; std&colon;&colon;declval&lt;T&gt;()), CP&gt;]
xref:mp_units/operator_slash-0a5.adoc[operator&sol;](
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] const& lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

[.small]#xref:mp_units/operator_slash-0a5.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-0c.adoc[operator&sol;](
    R lhs,
    Q&& q) = delete;
----

[.small]#xref:mp_units/operator_slash-0c.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-0bf.adoc[operator&sol;](
    R lhs,
    Rep&& rhs) = delete;
----

[.small]#xref:mp_units/operator_slash-0bf.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-03.adoc[operator&sol;](
    FwdRep&& lhs,
    R rhs);
----

[.small]#xref:mp_units/operator_slash-03.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(&quot;2&period;3&period;0&colon; References using offset units (e&period;g&period;, temperatures) should be constructed with the &grave;delta&grave; or &grave;point&grave; helpers&quot;)&rsqb;&rsqb;
constexpr
auto
xref:mp_units/operator_slash-06.adoc[operator&sol;](
    FwdRep&& lhs,
    R rhs);
----

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


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