[#bsl-basic_string-0faf-append-0b] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::append :relfileprefix: ../../ :mrdocs: `append` overloads == Synopses Declared in `<bslstl_string.h>` Append to this string each `CHAR_TYPE` object in the specified `values` initializer list, and return a reference providing modifiable access to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-011.adoc[append](std::initializer_list<CHAR_TYPE> values); ---- [.small]#xref:bsl/basic_string-0faf/append-011.adoc[_» more..._]# Append to this string the specified `suffix`, and return a reference providing modifiable access to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-0f.adoc[append](xref:bsl/basic_string-0faf.adoc[basic_string] const& suffix); ---- [.small]#xref:bsl/basic_string-0faf/append-0f.adoc[_» more..._]# Append characters to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-07.adoc[append](CHAR_TYPE const* characterString); ---- [.small]#xref:bsl/basic_string-0faf/append-07.adoc[_» more..._]# Append characters to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-02.adoc[append](STRING_VIEW_LIKE_TYPE const& suffix); ---- [.small]#xref:bsl/basic_string-0faf/append-02.adoc[_» more..._]# Append the specified `numChars` copies of the specified `character` to this string, and return a reference providing modifiable access to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-05.adoc[append]( xref:bsl/basic_string-0faf/size_type.adoc[size_type] numChars, CHAR_TYPE character); ---- [.small]#xref:bsl/basic_string-0faf/append-05.adoc[_» more..._]# Append characters to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-0d.adoc[append]( CHAR_TYPE const* characterString, xref:bsl/basic_string-0faf/size_type.adoc[size_type] numChars); ---- [.small]#xref:bsl/basic_string-0faf/append-0d.adoc[_» more..._]# Append the characters in the iterator range `[first, last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITER> xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-01e.adoc[append]( INPUT_ITER first, INPUT_ITER last); ---- [.small]#xref:bsl/basic_string-0faf/append-01e.adoc[_» more..._]# Append a substring of `suffix` to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-06.adoc[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); ---- [.small]#xref:bsl/basic_string-0faf/append-06.adoc[_» more..._]# Append characters to this string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_VIEW_LIKE_TYPE> xref:bsl/basic_string-0faf.adoc[basic_string]& xref:bsl/basic_string-0faf/append-08.adoc[append]( STRING_VIEW_LIKE_TYPE 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); ---- [.small]#xref:bsl/basic_string-0faf/append-08.adoc[_» more..._]# == Return Value * reference providing modifiable access to this string * a reference to this string == Parameters [cols="1,4"] |=== | Name| Description | *values* | initializer list of characters | *suffix* | characters to append | *characterString* | pointer to characters | *numChars* | number of characters | *character* | character value | *first* | beginning of the character range to append | *last* | end of the character range to append (one past last) | *position* | starting index in `suffix` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#