Allocate a memory block of the specified size and return its address.
Declared in <bslma_infrequentdeleteblocklist.h>
void*
allocate(int numBytes);
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.
address of the allocated, maximally aligned memory block
| Name | Description |
|---|---|
| numBytes | size in bytes of the memory block to allocate |