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

Return the cumulative number of allocation requests&period; Note that this number is incremented for every `allocate` invocation&period;

== Synopsis

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

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


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