[#BloombergLP-bslma-Default-globalAllocator]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/Default.adoc[Default]::globalAllocator
:relfileprefix: ../../../
:mrdocs:

Return the address of the global allocator if the optionally&hyphen; specified `basicAllocator` is 0, and `basicAllocator` otherwise&period; Note that prior to the first call to the `setGlobalAllocator` method, the address of the global allocator is that of the `NewDeleteAllocator` singleton&period;

== Synopsis

Declared in `&lt;bslma&lowbar;default&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bslma/Allocator.adoc[Allocator]*
globalAllocator(xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
