Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext
string::operator+= (2 of 2 overloads)

Append a character.

Synopsis
string&
operator+=(
    char ch);
Description

Appends a character to the end of the string.

Exception Safety

Strong guarantee.

Parameters

Name

Description

ch

The character to append.

Exceptions

Type

Thrown On

boost::system::system_error

size() + 1 > max_size().


PrevUpHomeNext