BloombergLP::bslma::TestAllocator_ProxyBase::setAllocationLimit

Set the allocation limit on the proxied test allocator.

Synopsis

Declared in <bslma_testallocator.h>

virtual
void
setAllocationLimit(bsls::Types::Int64 limit) const = 0;

Description

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

Parameters

NameDescription
limitThe allocation limit to set on the proxied allocator.