[#bsl-basic_stringbuf-2constructor-0a7] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic_stringbuf]::basic_stringbuf :relfileprefix: ../../ :mrdocs: Create a `basic_stringbuf` from the specified initial string. == Synopsis Declared in `<bslstl_stringbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit basic_stringbuf( xref:bsl/basic_stringbuf.adoc[StringType] const& initialString, xref:bsl/basic_stringbuf/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- == Description Same as the constructor taking `const allocator_type&`. == Parameters [cols="1,4"] |=== | Name| Description | *initialString* | initial character sequence for the buffer | *allocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#