...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Change the size of the string.
constexpr void resize( size_type n, value_type c);
Resizes the string to contain n
characters. If n >
size()
,
copies of c
are appended.
Otherwise, size()
is reduced to n
.
Name |
Description |
---|---|
|
The size to resize the string to. |
|
The characters to append if the size increases. |
Type |
Thrown On |
---|---|
|
|