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.

Synopsis

Declared in <bslma_default.h>

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

Created with MrDocs