[#BloombergLP-bdlma-CountingAllocator-numBytesInUse] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/CountingAllocator.adoc[CountingAllocator]::numBytesInUse :relfileprefix: ../../../ :mrdocs: Return the number of bytes currently allocated from this object. Note that `numBytesInUse() <= numBytesTotal()`. == Synopsis Declared in `<bdlma_countingallocator.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]#