Home | Libraries | People | FAQ | More |
Replace the contents.
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>> basic_static_string& assign( const T& t, size_type pos, size_type count = npos);
Replace the contents with a copy of the characters from string_view_type{t}.substr(pos, count)
The range [pos, count)
is extracted from the value obtained
by converting t
to string_view_type
, and used to assign
the string.
Type |
Thrown On |
---|---|
|
if |
|
if |