BloombergLP::balst::StackTraceTestAllocator::setAllocationLimit

Set the allocation-limit before an exception is thrown.

Synopsis

Declared in <balst_stacktracetestallocator.h>

void
setAllocationLimit(bsls::Types::Int64 limit);

Description

Set the number of valid allocation requests before an exception is to be thrown for this allocator to the specified limit. If limit is less than 0, no exception is to be thrown. By default, no exception is scheduled.

Parameters

NameDescription
limitremaining allocations before an exception is thrown