[#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` object having the same value as the specified `original` object by moving the contents of `original` to the newly‐created object. Optionally specify an `allocator` used to supply memory. `original.get_wrapped() == nullptr` after the call. [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` object by moving the contents of the specified `original` object, using the specified `allocator`. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#