[#BloombergLP-bsls-Assert-ViolationHandler-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/Assert.adoc[Assert]::ViolationHandler
:relfileprefix: ../../../
:mrdocs:

`ViolationHandler` is an alias for a pointer to a function returning `void`, and taking, as a parameter a single `const` reference to a `bsls&colon;&colon;AssertViolation` &hyphen;&hyphen; e&period;g&period;, &grave; void myHandler(const bsls&colon;&colon;AssertViolation&amp;)&semi; &grave;

== Synopsis

Declared in `&lt;bsls&lowbar;assert&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef void(* ViolationHandler)(xref:BloombergLP/bsls/AssertViolation.adoc[AssertViolation] const&);
----


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