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 5f0ff1c60c.
PrevUpHomeNext
basic_static_string::operator+= (5 of 5 overloads)

Append to the string.

Synopsis
template<
    typename T>
constexpr basic_static_string&
operator+=(
    const T& t);
Description

Appends sv to the end of the string, where sv is string_view_type(t).

Exception Safety

Strong guarantee.

Template Parameters

Type

Description

T

The type of the object to convert.

Constraints
std::is_convertible<T const&, string_view>::value &&
!std::is_convertible<T const&, char const*>::value &&
!std::is_convertible<const T&, const basic_static_string&>::value
Return Value

*this

Parameters

Name

Description

t

The string to append.

Exceptions

Type

Thrown On

std::length_error

size() + sv.size() > max_size()


PrevUpHomeNext