[#bsl-basic_syncbuf-2constructor-0a]
= xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]::basic&lowbar;syncbuf
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_syncbuf/2constructor-0b.adoc[basic&lowbar;syncbuf](xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]&& original);
----

[.small]#xref:bsl/basic_syncbuf/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Create a `basic&lowbar;syncbuf` object without a wrapped buffer&period; Optionally specify an `allocator` used to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/basic_syncbuf/2constructor-09.adoc[basic&lowbar;syncbuf](ALLOCATOR const& allocator = ALLOCATOR());
----

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

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


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

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

Create a `basic&lowbar;syncbuf` object&period; Set the specified `wrapped` as a wrapped buffer&period; Optionally specify an `allocator` used to supply memory&period;


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

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

== Parameters

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


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