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
basic_static_string::append (6 of 9 overloads)

Append to the string.

Synopsis
template<
    typename InputIterator>
constexpr basic_static_string&
append(
    InputIterator first,
    InputIterator 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

InputIterator

The type of the iterators.

Constraints

InputIteratorsatisfies InputIterator.

Return Value

*this

Parameters

Name

Description

first

An iterator referring to the first character to append.

last

An iterator past the end of last character to append.

Exceptions

Type

Thrown On

std::length_error

size() + std::distance(first, last) > max_size()


PrevUpHomeNext