Return the capacity to be used to contain data having the specified newLength when the current capacity is the specified currentCapacity. The returned value may be larger than newLength to allow for growth without the need for reallocation.

Synopsis

Declared in <bdlsb_memoutstreambuf.h>

static
std::size_t
computeNewCapacity(
    std::size_t newLength,
    std::size_t currentCapacity);

Created with MrDocs