[#BloombergLP-bslma-TestAllocator-status]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/TestAllocator.adoc[TestAllocator]::status
:relfileprefix: ../../../
:mrdocs:

Return a status code summarizing mismatches and outstanding memory&period;

== Synopsis

Declared in `&lt;bslma&lowbar;testallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
status() const;
----

== Description

Return 0 on success, and non&hyphen;zero otherwise&colon; If there have been any mismatched memory deallocations or over&sol;under runs, return the number of such errors that have occurred as a positive number&semi; if either `0 &lt; numBlocksInUse()` or `0 &lt; numBytesInUse()`, return an arbitrary negative number&semi; else return 0&period;

== Return Value

0 on success, positive for mismatches, or negative for leaks


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