[#bsl-basic_string-0f3-assign-09]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0f3.adoc[basic&lowbar;string&lt;char32&lowbar;t&gt;]::assign
:relfileprefix: ../../
:mrdocs:

Assign to this string the value of a string of the specified `numChars` length whose every character is equal to the specified `character`, and return a reference providing modifiable access to this string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;char32&lowbar;t&gt;]&
assign(
    xref:bsl/basic_string-0f3/size_type.adoc[size&lowbar;type] numChars,
    char32&lowbar;t character);
----


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