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

Modulus operators

== Synopses

Declared in `&lt;mp&hyphen;units&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/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_mod-05.adoc[operator%](
    U lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

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

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

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

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

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

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


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