[#BloombergLP-bslma-TestAllocator-numBytesInUse] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/TestAllocator.adoc[TestAllocator]::numBytesInUse :relfileprefix: ../../../ :mrdocs: Return the number of bytes currently allocated from this object. Note that `numBytesInUse() <= numBytesMax()`. == Synopsis Declared in `<bslma_testallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] numBytesInUse() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#