string::operator+=
Append characters from a string.
Synopsis
string&
operator+=(
string_view sv); (1)
string&
operator+=(
char ch); (2)
Description
Appends {sv.begin(), sv.end())
to the end of the string.
Exception Safety
Strong guarantee.
Return Value
*this
Parameters
Name | Description |
---|---|
|
The |
|
The character to append. |
Exceptions
Type | Thrown On |
---|---|
|
|