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

sv

The string_view to append.

ch

The character to append.

Exceptions

Type Thrown On

boost::system::system_error

size() + sv.size() > max_size().