This class provides a common base class for the parameterized TestAllocator_Proxy class (below). Note that the virtual setAllocationLimit method, although a "setter", must be declared const.

Synopsis

Declared in <bslma_testallocator.h>

class TestAllocator_ProxyBase;

Member Functions

Name

Description

~TestAllocator_ProxyBase [destructor] [virtual]

Destroy this proxy base object.

setAllocationLimit [virtual]

Set the allocation limit on the proxied test allocator.

Derived Classes

Name

Description

TestAllocator_Proxy

This class provides a proxy to the test allocator that is supplied to the BSLMA_TESTALLOCATOR_EXCEPTION_TEST_BEGIN macro. This proxy may be instantiated with TestAllocator, or with a type that supports the same interface as TestAllocator.

Created with MrDocs