[#BloombergLP-bsls-AssertTest-isValidAssertBuild]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/AssertTest.adoc[AssertTest]::isValidAssertBuild
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `specString` represents a valid textual description of an assertion build type, and `false` otherwise&period; `specString` is valid if it refers to a null&hyphen;terminated character string of length either 1 or 2, where the first character is an (UPPERCASE) `S`, `A`, `O`, or `I`, and the second character, if present, is the numeral `2`&period; Note that `S`, `A`, `O`, and `I` are intended to represent the respective assertion types `BSLS&lowbar;ASSERT&lowbar;SAFE`, `BSLS&lowbar;ASSERT`, `BSLS&lowbar;ASSERT&lowbar;OPT`, and `BSLS&lowbar;ASSERT&lowbar;INVOKE`, and the optional `2` is intended to indicate that the component (and program as a whole) was built with `BDE&lowbar;BUILD&lowbar;TARGET&lowbar;SAFE&lowbar;2` defined&period; The behavior is undefined unless `specString` points to a null terminated string (C string)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValidAssertBuild(char const* specString);
----


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