...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);
Resizes the string to contain n
characters. If n >
size()
,
characters with the value CharT()
are appended. Otherwise, size()
is reduced to n
.
Name |
Description |
---|---|
|
The size to resize the string to. |
Type |
Thrown On |
---|---|
|
|