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