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

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;

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wrapped*
| stream buffer to wrap
| *allocator*
| allocator used to supply memory
|===


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