[#bsl-basic_syncbuf-2constructor-0a] = xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic_syncbuf]::basic_syncbuf :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<bslstl_syncbuf.h>` Create a `basic_syncbuf` by moving from `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_syncbuf/2constructor-0b.adoc[basic_syncbuf](xref:bsl/basic_syncbuf.adoc[basic_syncbuf]&& original); ---- [.small]#xref:bsl/basic_syncbuf/2constructor-0b.adoc[_» more..._]# Create a `basic_syncbuf` object without a wrapped buffer. Optionally specify an `allocator` used to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/basic_syncbuf/2constructor-09.adoc[basic_syncbuf](ALLOCATOR const& allocator = ALLOCATOR()); ---- [.small]#xref:bsl/basic_syncbuf/2constructor-09.adoc[_» more..._]# Create a `basic_syncbuf` by moving from `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_syncbuf/2constructor-06.adoc[basic_syncbuf]( xref:bsl/basic_syncbuf.adoc[basic_syncbuf]&& original, ALLOCATOR const& allocator); ---- [.small]#xref:bsl/basic_syncbuf/2constructor-06.adoc[_» more..._]# Create a `basic_syncbuf` object. Set the specified `wrapped` as a wrapped buffer. Optionally specify an `allocator` used to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:bsl/basic_syncbuf/2constructor-00.adoc[basic_syncbuf]( xref:bsl/basic_syncbuf/streambuf_type.adoc[streambuf_type]* wrapped, ALLOCATOR const& allocator = ALLOCATOR()); ---- [.small]#xref:bsl/basic_syncbuf/2constructor-00.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *original* | object from which to move‐construct | *allocator* | allocator used to supply memory | *wrapped* | stream buffer to wrap |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#