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

Same as the constructor taking `(numChars, character)`&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(
    xref:bsl/basic_string-0ce/size_type.adoc[size&lowbar;type] numChars,
    char16&lowbar;t character,
    xref:bsl/allocator-0df.adoc[allocator&lt;char16&lowbar;t&gt;] const& basicAllocator = ALLOCATOR());
----


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