[#bsl-basic_string-0faf-assign_range]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::assign&lowbar;range
:relfileprefix: ../../
:mrdocs:

Assign characters from a range to this string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RANGE&gt;
xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]&
assign&lowbar;range(RANGE&& range);
----

== Description

Assign to this string the characters from the specified `range`&period; Return a reference providing modifiable access to this string&period; Note that `range` must meet the requirements of an input range and the values from `range` must have a type matching or convertible to (template parameter) `CHAR&lowbar;TYPE`&period;

== Return Value

reference providing modifiable access to this string

== Parameters

[cols="1,4"]
|===
| Name| Description
| *range*
| input range of characters
|===


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