BloombergLP::bslma::SequentialPool::reserveCapacity

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

NameDescription
numBytesThe minimum number of bytes to reserve.