[#bsl-basic_osyncstream-2constructor-08]
= xref:bsl.adoc[bsl]::xref:bsl/basic_osyncstream.adoc[basic&lowbar;osyncstream]::basic&lowbar;osyncstream
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bslstl&lowbar;osyncstream&period;h&gt;`

Create a `basic&lowbar;osyncstream` by moving from `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_osyncstream/2constructor-02.adoc[basic&lowbar;osyncstream](xref:bsl/basic_osyncstream.adoc[basic&lowbar;osyncstream]&& original) noexcept;
----

[.small]#xref:bsl/basic_osyncstream/2constructor-02.adoc[_» more&period;&period;&period;_]#

Create a `basic&lowbar;osyncstream` that forwards output to `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/basic_osyncstream/2constructor-01.adoc[basic&lowbar;osyncstream](
    std::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;& stream,
    ALLOCATOR const& allocator = ALLOCATOR());
----

[.small]#xref:bsl/basic_osyncstream/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a `basic&lowbar;osyncstream` by moving from `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_osyncstream/2constructor-00.adoc[basic&lowbar;osyncstream](
    xref:bsl/basic_osyncstream.adoc[basic&lowbar;osyncstream]&& original,
    ALLOCATOR const& allocator) noexcept;
----

[.small]#xref:bsl/basic_osyncstream/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a `basic&lowbar;osyncstream` that forwards output to `wrapped`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/basic_osyncstream/2constructor-04.adoc[basic&lowbar;osyncstream](
    xref:bsl/basic_osyncstream/streambuf_type.adoc[streambuf&lowbar;type]* wrapped,
    ALLOCATOR const& allocator = ALLOCATOR());
----

[.small]#xref:bsl/basic_osyncstream/2constructor-04.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| object from which to move&hyphen;construct
| *stream*
| output stream whose buffer receives synchronized output
| *allocator*
| allocator used to supply memory
| *wrapped*
| stream buffer that receives synchronized output
|===


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