[#BloombergLP-bdlma-GuardingAllocator-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/GuardingAllocator.adoc[GuardingAllocator]::GuardingAllocator :relfileprefix: ../../../ :mrdocs: Create a guarding allocator. Optionally specify a `guardLocation` indicating where read/write protected guard pages should be placed with respect to the memory blocks returned by the `allocate` method. If `guardLocation` is not specified, guard pages are placed immediately following the memory blocks returned by `allocate`. == Synopsis Declared in `<bdlma_guardingallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit GuardingAllocator(xref:BloombergLP/bdlma/GuardingAllocator/GuardPageLocation.adoc[GuardPageLocation] guardLocation = e_AFTER_USER_BLOCK); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#