Reserve capacity for at least the specified number of characters.

Synopsis

Declared in <bdlsb_memoutstreambuf.h>

void
reserveCapacity(std::size_t numCharacters);

Description

Reserve sufficient internal capacity to store at least the specified numCharacters characters without reallocation. Note that if the storage size specified is less than the number of characters already in the buffer, this method has no effect.

Parameters

Name

Description

numCharacters

minimum capacity to reserve

Created with MrDocs