[#bsl-basic_string-0fb-2constructor-0e] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::basic_string :relfileprefix: ../../ :mrdocs: Same as the constructor taking `(numChars, character)`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class = void> requires bsl::IsStdAllocator<ALLOCATOR>::value basic_string( xref:bsl/basic_string-0fb/size_type.adoc[size_type] numChars, char character, xref:bsl/allocator-0df.adoc[allocator<char>] const& basicAllocator = ALLOCATOR()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#