[#BloombergLP-bdlma-CountingAllocator-2constructor-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/CountingAllocator.adoc[CountingAllocator]::CountingAllocator :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlma_countingallocator.h>` Create a counting allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlma/CountingAllocator/2constructor-04.adoc[CountingAllocator](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/CountingAllocator/2constructor-04.adoc[_» more..._]# See the overload above for contract. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlma/CountingAllocator/2constructor-05.adoc[CountingAllocator]( char const* name, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/CountingAllocator/2constructor-05.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; null uses the default | *name* | optional name included in `print` output; null for none |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#