...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
string( std::size_t count, char ch, storage_ptr sp = {});
Construct the contents with count
copies of character ch
.
Linear in count
.
Strong guarantee. Calls to memory_resource::allocate
may throw.
Name |
Description |
---|---|
|
The size of the resulting string. |
|
The value to initialize characters of the string with. |
|
An optional pointer to the |
Type |
Thrown On |
---|---|
|
|