[#mp_units-constraint_violation_handler-0a-on_violation]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/constraint_violation_handler-0a.adoc[constraint&lowbar;violation&lowbar;handler&lt;safe&lowbar;int&lt;T, ErrorPolicy&gt;&gt;]::on&lowbar;violation
:relfileprefix: ../../
:mrdocs:

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
void
on&lowbar;violation(std::string&lowbar;view msg);
----


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