| Home | Libraries | People | FAQ | More

###### string::resize (1 of 2 overloads)

Change the size of the string.

<h7> Synopsis </h7>

    void
    resize(
        std::size_t count);

<h7> Description </h7>

Resizes the string to contain `count` characters. If `count > size()`, characters with the value `0` are appended. Otherwise, `size()` is reduced to `count`.

<h7> Parameters </h7>

Name | Description
--- | ---
`count` | The size to resize the string to.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`std::out_of_range` | `count > max_size()`