Create a scoped guard that installs the specified temporary allocator.
Declared in <bslma_defaultallocatorguard.h>
explicit
DefaultAllocatorGuard(Allocator* temporary);
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.
| Name | Description |
|---|---|
| temporary | allocator to install as the default allocator |