[#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&period; Note that prior to the first call to `setDefaultAllocator` or `setDefaultAllocatorRaw` methods, the address of the default allocator is that of the `NewDeleteAllocator` singleton&period; Also note that subsequent calls to `setDefaultAllocatorRaw` method are _not_ disabled by this method&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]*
defaultAllocator();
----


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