Create a guarding allocator.
Synopsis
Declared in <bdlma_guardingallocator.h>
explicit
GuardingAllocator(GuardPageLocation guardLocation = e_AFTER_USER_BLOCK);
Description
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.
Parameters
Name |
Description |
guardLocation |
where to place guard pages relative to allocated blocks |
Created with MrDocs