Quick Links: |
#include <bsltf_stdtestallocator.h>
Static Public Member Functions | |
static void | setDelegateAllocatorRaw (bslma::Allocator *basicAllocator) |
static bslma::Allocator * | delegateAllocator () |
This struct
provides a namespace for functions that manipulate and access the delegate allocator for StdTestAllocator
. The delegate allocator is the allocator to which StdTestAllocator
objects delegate their operations. The provided operations are not thread-safe. Note that this allocator is configured globally as C++03 standard compliant allocators cannot have individually identifiable state.
See Component bsltf_stdtestallocator
static void bsltf::StdTestAllocatorConfiguration::setDelegateAllocatorRaw | ( | bslma::Allocator * | basicAllocator | ) | [static] |
Set the address of the delegate allocator to the specified basicAllocator
.
static bslma::Allocator* bsltf::StdTestAllocatorConfiguration::delegateAllocator | ( | ) | [static] |
Return the address of the delegate allocator. Note that, this method will initially return &bslma_NewDeleteAllocator::singleton()
if the setDelegatingAllocator
class method has not been called.