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

This is the documentation for a snapshot of the master branch, built from commit 84c43c2541.
PrevUpHomeNext
string::operator+= (1 of 2 overloads)

Append characters from a string.

Synopsis
string&
operator+=(
    string_view sv);
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.

Exceptions

Type

Thrown On

boost::system::system_error

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


PrevUpHomeNext