BloombergLP::bdlsb::MemOutStreamBuf::reserveCapacity

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

NameDescription
numCharactersminimum capacity to reserve