Return a newly‐allocated maximally‐aligned block of memory of the specified size (in bytes) that has a read/write protected guard page located immediately before or after it according to the GuardPageLocation indicated at construction. If size is 0, no memory is allocated and 0 is returned. Note that a multiple of the platform's memory page size is allocated for every call to this method.

Synopsis

Declared in <bdlma_guardingallocator.h>

virtual
void*
allocate(bsls::Types::size_type size) override;

Created with MrDocs