![]() |
Home | Libraries | People | FAQ | More |
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 |
---|---|
boost::system::system_error |
|