BloombergLP::bdlma::CountingAllocator::CountingAllocator

Constructors

Synopses

Declared in <bdlma_countingallocator.h>

Create a counting allocator.

explicit
CountingAllocator(bslma::Allocator* basicAllocator = 0);
» more...

See the overload above for contract.

explicit
CountingAllocator(
    char const* name,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
nameoptional name included in print output; null for none