Replace the substring in the range starting at the specified first position and ending right before the specified last position with the specified null‐terminated characterString (of length CHAR_TRAITS::length(characterString)). Return a reference providing modifiable access to this string. The behavior is undefined unless first and last are both within the range [cbegin() .. cend()] and first <= last.

Synopsis

Declared in <bslstl_string.h>

basic_string<char16_t>&
replace(
    const_iterator first,
    const_iterator last,
    char16_t const* characterString);

Created with MrDocs