Return the address of the default allocator and lock it.

Synopsis

Declared in <bslma_default.h>

static
Allocator*
defaultAllocator();

Description

Return the address of the default allocator and disable all subsequent calls to the setDefaultAllocator method. Note that prior to the first call to setDefaultAllocator or setDefaultAllocatorRaw methods, the address of the default allocator is that of the NewDeleteAllocator singleton. Also note that subsequent calls to setDefaultAllocatorRaw method are not disabled by this method.

Return Value

address of the default allocator

Created with MrDocs