Create an empty stream buffer with the specified initial capacity.
Declared in <bdlsb_memoutstreambuf.h>
explicit
MemOutStreamBuf(
std::size_t numElements,
bslma::Allocator* basicAllocator = 0);
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.
| Name | Description |
|---|---|
| numElements | initial capacity in characters |
| basicAllocator | allocator used to supply memory |