[#bsl-basic_string-0faf-append-06] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::append :relfileprefix: ../../ :mrdocs: Append a substring of `suffix` to this string. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& append( xref:bsl/basic_string-0faf.adoc[basic_string] const& suffix, xref:bsl/basic_string-0faf/size_type.adoc[size_type] position, xref:bsl/basic_string-0faf/size_type.adoc[size_type] numChars = npos); ---- == Description Append to this string the optionally specified `numChars` characters starting at the specified `position` in the specified `suffix`, or the tail of `suffix` starting at `position` if `position + numChars > suffix.length()`. If `numChars` is not specified, `npos` is used. Return a reference providing modifiable access to this string. Throw `out_of_range` if `position > suffix.length()`. == Return Value a reference to this string == Parameters [cols="1,4"] |=== | Name| Description | *suffix* | string providing the characters to append | *position* | starting index in `suffix` | *numChars* | number of characters to append |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#