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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
string::append (2 of 3 overloads)

Append a string to the string.

Synopsis
string&
append(
    string_view sv);
Description

Appends sv 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

std::length_error

size() + s.size() > max_size()


PrevUpHomeNext