Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
string::append (3 of 3 overloads)

Append a range of characters.

Synopsis
template<
    class InputIt>
string&
append(
    InputIt first,
    InputIt last);
Description

Appends characters from the range {first, last) to the end of the string.

Precondition

{first, last)shall be a valid range

Exception Safety

Strong guarantee.

Template Parameters

Type

Description

InputIt

The type of the iterators.

Constraints

InputItsatisfies InputIterator.

Return Value

*this

Parameters

Name

Description

first

An iterator representing the first character to append.

last

An iterator one past the last character to append.

Exceptions

Type

Thrown On

system_error

size() + insert_count > max_size()


PrevUpHomeNext