Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Assign characters to a string.
string& assign( std::size_t count, char ch);
Replace the contents with count
copies of character ch.
Linear in count.
Strong guarantee. Calls to memory_resource::allocate
may throw.
*this
|
Name |
Description |
|---|---|
|
|
The size of the resulting string. |
|
|
The value to initialize characters of the string with. |
|
Type |
Thrown On |
|---|---|
|
|
|