[#BloombergLP-bslma-DefaultAllocatorGuard-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/DefaultAllocatorGuard.adoc[DefaultAllocatorGuard]::DefaultAllocatorGuard :relfileprefix: ../../../ :mrdocs: Create a scoped guard that installs the specified `temporary` allocator as the default allocator. Note that the default allocator is automatically restored to the original allocator on destruction. == Synopsis Declared in `<bslma_defaultallocatorguard.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit DefaultAllocatorGuard(xref:BloombergLP/bslma/Allocator.adoc[Allocator]* temporary); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#