[#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 the `setDefaultAllocator` method. Subsequent calls to this method have no effect. Note that subsequent calls to the `setDefaultAllocatorRaw` method are _not_ disabled by this method. == Synopsis Declared in `<bslma_default.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void lockDefaultAllocator(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#