BloombergLP::bslma::TestAllocator::TestAllocator

Create an instrumented "test" allocator with the specified name and verboseFlag.

Synopsis

Declared in <bslma_testallocator.h>

TestAllocator(
    char const* name,
    bool verboseFlag,
    Allocator* basicAllocator = 0);

Parameters

NameDescription
nameThe diagnostic name for this test allocator.
verboseFlagFlag indicating whether to report events verbosely.
basicAllocatorThe allocator used to supply memory.