[#BloombergLP-bslx-TestOutStream-2constructor-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestOutStream.adoc[TestOutStream]::TestOutStream
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bslx&lowbar;testoutstream&period;h&gt;`

Create an empty output byte stream that will use the specified (_compile_&hyphen;time&hyphen;defined) `versionSelector` as needed (see &lcub;Versioning&rcub;)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that the `versionSelector` is expected to be formatted as &quot;YYYYMMDD&quot;, a date representation&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslx/TestOutStream/2constructor-08.adoc[TestOutStream](
    int versionSelector,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslx/TestOutStream/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create an empty output byte stream having an initial buffer capacity of at least the specified `initialCapacity` (in bytes) and that will use the specified (_compile_&hyphen;time&hyphen;defined) `versionSelector` as needed (see &lcub;Versioning&rcub;)&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; Note that the `versionSelector` is expected to be formatted as &quot;YYYYMMDD&quot;, a date representation&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslx/TestOutStream/2constructor-0e.adoc[TestOutStream](
    int versionSelector,
    std::size&lowbar;t initialCapacity,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslx/TestOutStream/2constructor-0e.adoc[_» more&period;&period;&period;_]#


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