expand overloads
Declared in <bslma_sequentialallocator.h>
Expand the memory block at the specified address.
int
expand(
void* address,
int originalNumBytes);
» more...
Expand the memory block at the specified address up to maxNumBytes.
int
expand(
void* address,
int originalNumBytes,
int maxNumBytes);
» more...
The amount of memory available after expansion (in bytes).
| Name | Description |
|---|---|
| address | The address of the memory block to expand. |
| originalNumBytes | The original allocation size (in bytes). |
| maxNumBytes | The maximum expanded size (in bytes). |