[#bsl-basic_string-0f3-insert-0f] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0f3.adoc[basic_string<char32_t>]::insert :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> xref:bsl/basic_string-0faf.adoc[basic_string<char32_t>]& insert( xref:bsl/basic_string-0f3/size_type.adoc[size_type] position, STRING_VIEW_LIKE_TYPE const& other); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#