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

Disable all subsequent calls to `setDefaultAllocator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
lockDefaultAllocator();
----

== Description

Disable all subsequent calls to the `setDefaultAllocator` method&period; Subsequent calls to this method have no effect&period; Note that subsequent calls to the `setDefaultAllocatorRaw` method are _not_ disabled by this method&period;


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