BloombergLP::bslma::TestAllocator::TestAllocator

Constructors

Synopses

Declared in <bslma_testallocator.h>

Create an instrumented "test" allocator.

explicit
TestAllocator(Allocator* basicAllocator = 0);
» more...

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

explicit
TestAllocator(
    bool verboseFlag,
    Allocator* basicAllocator = 0);
» more...

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

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

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

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

Parameters

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