[#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&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;guardingallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
GuardingAllocator(xref:BloombergLP/bdlma/GuardingAllocator/GuardPageLocation.adoc[GuardPageLocation] guardLocation = e&lowbar;AFTER&lowbar;USER&lowbar;BLOCK);
----

== Description

Optionally specify a `guardLocation` indicating where read&sol;write protected guard pages should be placed with respect to the memory blocks returned by the `allocate` method&period; If `guardLocation` is not specified, guard pages are placed immediately following the memory blocks returned by `allocate`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *guardLocation*
| where to place guard pages relative to allocated blocks
|===


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