Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::append (3 of 9 overloads)

Append to the string.

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

Appends the contents of s.substr(pos, count) The appended string can contain null characters.

Exceptions

Type

Thrown On

std::out_of_range

if pos > s.size()

std::length_error

if s.substr(pos, count).size() > max_size() - size()

Return Value

*this


PrevUpHomeNext