[#mp_units-utility-terminate_policy]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::terminate&lowbar;policy
:relfileprefix: ../../
:mrdocs:

Error policy that terminates the program on constraint violation (freestanding&hyphen;safe)&period;

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;utility&sol;constrained&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct terminate&lowbar;policy;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:mp_units/utility/terminate_policy/on_constraint_violation.adoc[`on&lowbar;constraint&lowbar;violation`]  [.small]#[noreturn]#
| Reports a constraint violation by terminating the program&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:mp_units/utility/safe_int_terminate_policy.adoc[`safe&lowbar;int&lowbar;terminate&lowbar;policy`] 
| Error policy that terminates the program on overflow (always available, freestanding&hyphen;safe)&period;
|===


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