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

Name

Description

basicAllocator

allocator to return, or 0 for the default

Created with MrDocs