bsl::basic_string<char16_t>::insert

Insert at the specified position in this string the bsl::string_view object, obtained from the specified other, and return a reference providing modifiable access to this string. Throw out_of_range if position > length(). Throw length_error if the length of the resulting string exceeds max_size().

Synopsis

Declared in <bslstl_string.h>

template<class STRING_VIEW_LIKE_TYPE>
basic_string<char16_t>&
insert(
    size_type position,
    STRING_VIEW_LIKE_TYPE const& other);