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.
defaultAllocator
setDefaultAllocator
basicAllocator
Declared in <bslma_default.h>
<bslma_default.h>
static Allocator* allocator(Allocator* basicAllocator = 0);