Constructors
Synopses
Declared in <bslma_testallocator.h>
Create an instrumented "test" allocator.
explicit
TestAllocator(Allocator* basicAllocator = 0);
Create an instrumented "test" allocator with the specified verboseFlag.
explicit
TestAllocator(
bool verboseFlag,
Allocator* basicAllocator = 0);
Create an instrumented "test" allocator with the specified name.
explicit
TestAllocator(
char const* name,
Allocator* basicAllocator = 0);
Create an instrumented "test" allocator with the specified name and verboseFlag.
TestAllocator(
char const* name,
bool verboseFlag,
Allocator* basicAllocator = 0);
Parameters
Name |
Description |
basicAllocator |
The allocator used to supply memory. |
verboseFlag |
Flag indicating whether to report events verbosely. |
name |
The diagnostic name for this test allocator. |
Created with MrDocs