Reserve sufficient memory for at least the specified numBytes.

Synopsis

Declared in <bslma_sequentialpool.h>

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 minimum number of bytes to reserve.

Created with MrDocs