Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
string::append (1 of 3 overloads)

Append characters to the string.

Synopsis
string&
append(
    std::size_t count,
    char ch);
Description

Appends count copies of ch to the end of the string.

Exception Safety

Strong guarantee.

Return Value

*this

Parameters

Name

Description

count

The number of characters to append.

ch

The character to append.

Exceptions

Type

Thrown On

system_error

size() + count > max_size()


PrevUpHomeNext