BloombergLP::bslma::Default::allocator

Return basicAllocator, or the default allocator if it is 0.

Synopsis

Declared in <bslma_default.h>

static
Allocator*
allocator(Allocator* basicAllocator = 0);

Description

Return the allocator returned by defaultAllocator and disable all subsequent calls to the setDefaultAllocator method if the optionally-specified basicAllocator is 0; return basicAllocator otherwise.

Return Value

basicAllocator, or the default allocator if it is 0

Parameters

NameDescription
basicAllocatorallocator to return, or 0 for the default