[#bsl-basic_string-0faf-insert-047] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::insert :relfileprefix: ../../ :mrdocs: Insert characters into this string. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& insert( xref:bsl/basic_string-0faf/size_type.adoc[size_type] position, xref:bsl/basic_string-0faf.adoc[basic_string] const& other); ---- == Description Insert at the specified `position` in this string a copy of the specified `other` string, and return a reference providing modifiable access to this string. Throw `out_of_range` if `position > length()`. == Return Value reference providing modifiable access to this string == Parameters [cols="1,4"] |=== | Name| Description | *position* | starting index | *other* | string or character sequence to compare or use |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#