[#bsl-basic_string-0e-2constructor-0ad]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0e.adoc[basic&lowbar;string&lt;wchar&lowbar;t&gt;]::basic&lowbar;string
:relfileprefix: ../../
:mrdocs:

Create a string and insert (in order) each `CHAR&lowbar;TYPE` object in the specified `values` initializer list&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is not specified, then a default&hyphen;constructed allocator is used&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
basic&lowbar;string(
    std::initializer&lowbar;list&lt;wchar&lowbar;t&gt; values,
    xref:bsl/allocator-0df.adoc[allocator&lt;wchar&lowbar;t&gt;] const& basicAllocator = ALLOCATOR());
----


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