[#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 test output stream with the given version selector&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 test output stream with capacity and version selector&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;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *versionSelector*
| compile&hyphen;time version selector (e&period;g&period;, YYYYMMDD)
| *basicAllocator*
| memory allocator&semi; null uses the default
| *initialCapacity*
| initial buffer capacity in bytes
|===


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