...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Assign to the string.
template< std::size_t M> constexpr basic_static_string& assign( const basic_static_string< M, CharT, Traits >& s, size_type pos, size_type count = npos);
Replaces the contents with those of the string sub
,
where sub
is s.substr(pos, count)
.
Linear in sub.size()
.
Strong guarantee.
Type |
Description |
---|---|
|
The capacity of the other string. |
*this
Name |
Description |
---|---|
|
The string to replace the contents with. |
|
The index at which to begin the substring. |
|
The size of the substring. The default argument for this parameter
is |
Type |
Thrown On |
---|---|
|
sub.size() > |