allocateAndExpand overloads
Declared in <bslma_sequentialallocator.h>
Return memory of at least the specified *size.
void*
allocateAndExpand(int* size);
» more...
Return memory of at least the specified *size and at most maxNumBytes.
void*
allocateAndExpand(
int* size,
int maxNumBytes);
» more...
The address of the allocated memory block.
| Name | Description |
|---|---|
| size | The requested size (in/out); updated with the actual size. |
| maxNumBytes | The maximum number of bytes to allocate. |