Reserve memory for at least the specified numBytes of allocations.
Synopsis
Declared in <bslma_sequentialallocator.h>
virtual
void
reserveCapacity(int numBytes);
Description
Reserve sufficient memory to satisfy allocation requests for at least the specified numBytes without replenishment (i.e., without internal allocation). The behavior is undefined unless 0 <= numBytes.
Parameters
Name |
Description |
numBytes |
The number of bytes to reserve capacity for. |
Created with MrDocs