BloombergLP::bslma::TestAllocator::setQuiet

Set the quiet mode for this test allocator to flagValue.

Synopsis

Declared in <bslma_testallocator.h>

void
setQuiet(bool flagValue);

Description

Set the quiet mode for this test allocator to the specified (boolean) flagValue. If flagValue is true, mismatched allocations, overrun/underrun errors, and memory leak messages will not be displayed to stdout and the process will not abort as a result of such conditions. Note that the default mode is not quiet. Also note that this function is provided primarily to enable testing of this component; in quiet mode, situations that would otherwise abort will just quietly increment the numMismatches and/or numBoundsErrors counters.

Parameters

NameDescription
flagValuetrue to enable quiet mode; false to disable it.