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

Division operators

== Synopses

Declared in `&lt;mp&hyphen;units&sol;utility&sol;safe&lowbar;int&period;h&gt;`

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int&lt;detail::integral&lowbar;op&lowbar;result&lowbar;t&lt;U, T&gt;, ErrorPolicy&gt;]
xref:mp_units/utility/operator_slash-02.adoc[operator&sol;](
    U lhs,
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] rhs);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
auto
xref:mp_units/utility/operator_slash-05.adoc[operator&sol;](
    U lhs,
    xref:mp_units/utility/safe_int-07.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/utility/operator_slash-05.adoc[_» more&period;&period;&period;_]#

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int&lt;detail::integral&lowbar;op&lowbar;result&lowbar;t&lt;T, U&gt;, ErrorPolicy&gt;]
xref:mp_units/utility/operator_slash-0d.adoc[operator&sol;](
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] lhs,
    U rhs);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
auto
xref:mp_units/utility/operator_slash-07.adoc[operator&sol;](
    xref:mp_units/utility/safe_int-07.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/utility/operator_slash-07.adoc[_» more&period;&period;&period;_]#

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int&lt;detail::integral&lowbar;op&lowbar;result&lowbar;t&lt;T, T&gt;, ErrorPolicy&gt;]
xref:mp_units/utility/operator_slash-0e.adoc[operator&sol;](
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] lhs,
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] rhs);
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int&lt;detail::integral&lowbar;op&lowbar;result&lowbar;t&lt;T, U&gt;, ErrorPolicy&gt;]
xref:mp_units/utility/operator_slash-09.adoc[operator&sol;](
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] lhs,
    xref:mp_units/utility/constrained.adoc[constrained&lt;U, CP&gt;] rhs);
----

[.small]#xref:mp_units/utility/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/utility/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/utility/operator_slash-082.adoc[operator&sol;](
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] lhs,
    xref:mp_units/utility/constrained.adoc[constrained&lt;U, CP&gt;] const& rhs);
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int&lt;detail::integral&lowbar;op&lowbar;result&lowbar;t&lt;U, T&gt;, ErrorPolicy&gt;]
xref:mp_units/utility/operator_slash-08b.adoc[operator&sol;](
    xref:mp_units/utility/constrained.adoc[constrained&lt;U, CP&gt;] lhs,
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] rhs);
----

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

Division operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/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/utility/operator_slash-04.adoc[operator&sol;](
    xref:mp_units/utility/constrained.adoc[constrained&lt;U, CP&gt;] const& lhs,
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] rhs);
----

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


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