[#mp_units-utility-safe_int_throw_policy]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::safe&lowbar;int&lowbar;throw&lowbar;policy
:relfileprefix: ../../
:mrdocs:

Error policy that throws std&colon;&colon;overflow&lowbar;error on overflow (hosted only)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct safe&lowbar;int&lowbar;throw&lowbar;policy
    : xref:mp_units/utility/throw_policy.adoc[throw&lowbar;policy]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:mp_units/utility/throw_policy.adoc[throw&lowbar;policy]`
| Error policy that throws std&colon;&colon;domain&lowbar;error on constraint violation (hosted only)&period;
|===

== Static Member Functions

[cols="1"]
|===
| Name
| xref:mp_units/utility/throw_policy/on_constraint_violation.adoc[`on&lowbar;constraint&lowbar;violation`]  [.small]#[noreturn]#
| xref:mp_units/utility/safe_int_throw_policy/on_overflow.adoc[`on&lowbar;overflow`]  [.small]#[noreturn]#
|===



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