Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 43a23657d4.
PrevUpHomeNext
basic_static_string::resize (1 of 2 overloads)

Change the size of the string.

Synopsis
constexpr void
resize(
    size_type n);
Description

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

Parameters

Name

Description

n

The size to resize the string to.

Exceptions

Type

Thrown On

std::out_of_range

n > max_size()


PrevUpHomeNext