Allocate a memory block of the specified size and return its address.
Synopsis
Declared in <bslma_infrequentdeleteblocklist.h>
void*
allocate(int numBytes);
Description
Allocate a memory block of the specified numBytes size and return its address. The returned memory is guaranteed to be maximally aligned. The behavior is undefined unless 0 <= numBytes.
Return Value
address of the allocated, maximally aligned memory block
Parameters
Name |
Description |
numBytes |
size in bytes of the memory block to allocate |
Created with MrDocs