allocate overloads
Synopses
Declared in <bdlma_guardingallocator.h>
Return a newly allocated block of memory of the specified size bytes.
virtual
void*
allocate(size_type size) = 0;
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.
virtual
void*
allocate(bsls::Types::size_type size) override;
[[nodiscard]]
void*
allocate(
size_t __bytes,
size_t __alignment = _S_max_align);
Created with MrDocs