...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( const_pointer s, size_type count);
Replaces the contents with those of {s, s + count)
.
Linear in count
.
Strong guarantee.
The range can contain null characters.
*this
Name |
Description |
---|---|
|
The number of characters to copy. |
|
A pointer to the string to copy from. |
Type |
Thrown On |
---|---|
|
count > |