[#BloombergLP-balst-StackTraceTestAllocator-allocationLimit]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTraceTestAllocator.adoc[StackTraceTestAllocator]::allocationLimit
:relfileprefix: ../../../
:mrdocs:

Return the current number of allocation requests left before an exception is thrown&period; A negative value indicates that no exception is scheduled&period;

== Synopsis

Declared in `&lt;balst&lowbar;stacktracetestallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64]
allocationLimit() const;
----


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