...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Append to the string.
template< typename T> constexpr basic_static_string& append( const T& t, size_type pos, size_type count = npos);
Appends the substring sv
to the end of the string, where sv
is string_view_type(t).substr(pos, count)
.
Strong guarantee.
Type |
Description |
---|---|
|
The type of the object to convert. |
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
*this
Name |
Description |
---|---|
|
The object to append. |
|
The index at which to begin the substring. |
|
The size of the substring. The default argument for this parameter
is |
Type |
Thrown On |
---|---|
|
|