Return memory of at least the specified *size.
Declared in <bslma_sequentialallocator.h>
void*
allocateAndExpand(int* size);
Return memory of at least the specified *size and return the actual amount of memory allocated in *size. If *size is 0, no memory is allocated and 0 is returned. The behavior is undefined unless 0 <= *size.
The address of the allocated memory block.
| Name | Description |
|---|---|
| size | The requested size (in/out); updated with the actual size. |