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 develop branch, built from commit adcd4c09f0.
PrevUpHomeNext
basic_static_string::append (3 of 9 overloads)

Append to the string.

Synopsis
template<
    std::size_t M>
constexpr basic_static_string&
append(
    const basic_static_string< M, CharT, Traits >& s,
    size_type pos,
    size_type count = npos);
Description

Appends the substring sub to the end of the string, where sub is s.substr(pos, count).

Exception Safety

Strong guarantee.

Template Parameters

Type

Description

M

The size of the string to append.

Return Value

*this

Parameters

Name

Description

s

The string to append.

pos

The index at which to begin the substring.

count

The size of the substring. The default argument for this parameter is npos.

Exceptions

Type

Thrown On

std::length_error

size() + sub.size() > max_size()

std::out_of_range

pos > s.size()


PrevUpHomeNext