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

Modulus operators

== Synopses

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

Modulus 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_mod-09.adoc[operator%](
    U lhs,
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] rhs);
----

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

Modulus 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_mod-04.adoc[operator%](
    xref:mp_units/utility/safe_int-07.adoc[safe&lowbar;int] lhs,
    U rhs);
----

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

Modulus 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_mod-0c.adoc[operator%](
    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_mod-0c.adoc[_» more&period;&period;&period;_]#

Modulus 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_mod-06.adoc[operator%](
    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_mod-06.adoc[_» more&period;&period;&period;_]#

Modulus 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_mod-0e.adoc[operator%](
    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_mod-0e.adoc[_» more&period;&period;&period;_]#


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