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

Same as the constructor taking `const CHAR&lowbar;TYPE &ast;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class = void&gt;
requires bsl&colon;&colon;IsStdAllocator&lt;ALLOCATOR&gt;&colon;&colon;value
basic&lowbar;string(
    wchar&lowbar;t const* characterString,
    xref:bsl/allocator-0df.adoc[allocator&lt;wchar&lowbar;t&gt;] const& basicAllocator = ALLOCATOR());
----


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