[#BloombergLP-bslma-Default-defaultAllocator] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/Default.adoc[Default]::defaultAllocator :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<bslma_default.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bslma/Allocator.adoc[Allocator]* defaultAllocator(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#