Constructors
Synopses
Declared in <bdlma_countingallocator.h>
Create a counting allocator. Optionally specify a name (associated with this object) to be included in messages output by the print method, thereby distinguishing this counting allocator from others that might be used in the same program. If name is 0 (or not specified), no distinguishing name is incorporated in print output. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
explicit
CountingAllocator(bslma::Allocator* basicAllocator = 0);
See the overload above for contract.
explicit
CountingAllocator(
char const* name,
bslma::Allocator* basicAllocator = 0);
Created with MrDocs