[#BloombergLP-bdlsb-MemOutStreamBuf-2constructor-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/MemOutStreamBuf.adoc[MemOutStreamBuf]::MemOutStreamBuf
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bdlsb&lowbar;memoutstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
MemOutStreamBuf(
    std::size&lowbar;t numElements,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
