BloombergLP::bdlma::GuardingAllocator::GuardingAllocator

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>

explicit
GuardingAllocator(GuardPageLocation guardLocation = e_AFTER_USER_BLOCK);