[#bsl-basic_osyncstream-2constructor-04] = xref:bsl.adoc[bsl]::xref:bsl/basic_osyncstream.adoc[basic_osyncstream]::basic_osyncstream :relfileprefix: ../../ :mrdocs: Create a `basic_osycnstream` object that will forward stream output to the specified `wrapped` buffer. Optionally specify an `allocator` used to supply memory. If `allocator` is not supplied, a default‐constructed object of the (template parameter) `ALLOCATOR` type is used. If the `ALLOCATOR` argument is of type `bsl::allocator` (the default), then `allocator`, if supplied, shall be convertible to `bslma::Allocator *`. If the `ALLOCATOR` argument is of type `bsl::allocator` and `allocator` is not supplied, the currently installed default allocator will be used to supply memory. == Synopsis Declared in `<bslstl_osyncstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit basic_osyncstream( xref:bsl/basic_osyncstream/streambuf_type.adoc[streambuf_type]* wrapped, ALLOCATOR const& allocator = ALLOCATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#