[#bsl-basic_string-0fb-replace_with_range] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0fb.adoc[basic_string<char>]::replace_with_range :relfileprefix: ../../ :mrdocs: Replace the substring in the range starting at the specified `first` position and ending right before the specified `last` position with the characters from the specified `range`. Return a reference providing modifiable access to this string. The behavior is undefined unless `first` and `last` are both within the range `[cbegin() .. cend()]`. 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_TYPE`. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class RANGE> xref:bsl/basic_string-0faf.adoc[basic_string<char>]& replace_with_range( xref:bsl/basic_string-0fb/const_iterator.adoc[const_iterator] first, xref:bsl/basic_string-0fb/const_iterator.adoc[const_iterator] last, RANGE&& range); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#