Constructors

Synopses

Declared in <bdlma_countingallocator.h>

Create a counting allocator.

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

See the overload above for contract.

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

Parameters

Name

Description

basicAllocator

memory allocator; null uses the default

name

optional name included in print output; null for none

Created with MrDocs