Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::append (9 of 9 overloads)

Append to the string.

Synopsis
template<
    typename T,
    [role red error.class-detail-template.1][role red error.class-detail-template.2] = detail::enable_if_viewable_t<T, CharT, Traits>>
BOOST_STATIC_STRING_CPP14_CONSTEXPR basic_static_string&
append(
    const T& t,
    size_type pos,
    size_type count = npos);
Description

Appends characters from string_view_type{t}.substr{pos, count} The appended string can contain null characters. This function participates in overload resolution if T is convertible to string_view_type and T is not convertible to const_pointer.

Exceptions

Type

Thrown On

std::out_of_range

if pos > string_view_type{t}.size()

std::length_error

if string_view_type{t}.substr(pos, count).size() > max_size() - size()

Return Value

*this


PrevUpHomeNext