...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.
constexpr basic_static_string& assign( size_type count, value_type ch);
Replaces the contents with count
copies of character ch
.
Linear in count
.
Strong guarantee.
*this
Name |
Description |
---|---|
|
The size of the resulting string. |
|
The value to initialize characters of the string with. |
Type |
Thrown On |
---|---|
|
count > |