Return the address of a contiguous block of memory of the specified size.
Declared in <bdlma_infrequentdeleteblocklist.h>
void*
allocate(bsls::Types::size_type size);
Return the address of a contiguous block of memory of the specified size (in bytes). If size is 0, no memory is allocated and 0 is returned. The returned memory is guaranteed to be maximally aligned.
address of a contiguous block of size bytes, or 0 if size is 0
| Name | Description |
|---|---|
| size | size in bytes of the memory block to allocate |