BloombergLP::bdlsb::MemOutStreamBuf::MemOutStreamBuf

Create an empty stream buffer with the specified initial capacity.

Synopsis

Declared in <bdlsb_memoutstreambuf.h>

explicit
MemOutStreamBuf(
    std::size_t numElements,
    bslma::Allocator* basicAllocator = 0);

Description

Create an empty stream buffer with sufficient initial capacity to accommodate up to the specified numElements characters without subsequent reallocation. If numElements == 0, an implementation-defined initial capacity is used. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
numElementsinitial capacity in characters
basicAllocatorallocator used to supply memory