[#assertion_fail]
= assertion&lowbar;fail
:mrdocs:

Internal helper&period; The noreturn enables optimizers to discard invalid paths&period;

== Synopsis

Declared in `&lt;util&sol;check&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;noreturn&rsqb;&rsqb;
void
assertion&lowbar;fail(
    std::source&lowbar;location const& loc,
    std::string&lowbar;view assertion);
----

== Return Value

[NOTE]
====
This function https://en.cppreference.com/cpp/language/attributes/noreturn[does not return^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *loc*
| The source location of the failed assertion&period;
| *assertion*
| The failed assertion text&period;
|===


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