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