Reserve memory for at least the specified numBytes of allocations.
Declared in <bslma_sequentialallocator.h>
virtual
void
reserveCapacity(int numBytes);
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.
| Name | Description |
|---|---|
| numBytes | The number of bytes to reserve capacity for. |