Return basicAllocator, or the global allocator if it is 0.
Declared in <bslma_default.h>
static
Allocator*
globalAllocator(Allocator* basicAllocator = 0);
Return the address of the global allocator if the optionally- specified basicAllocator is 0, and basicAllocator otherwise. Note that prior to the first call to the setGlobalAllocator method, the address of the global allocator is that of the NewDeleteAllocator singleton.
basicAllocator, or the global allocator if it is 0
| Name | Description |
|---|---|
| basicAllocator | allocator to return, or 0 for the global |