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 3785d1f795.
PrevUpHomeNext
basic_static_string::resize (2 of 2 overloads)

Change the size of the string.

Synopsis
constexpr void
resize(
    size_type n,
    value_type c);
Description

Resizes the string to contain n characters. If n > size(), copies of c are appended. Otherwise, size() is reduced to n.

Parameters

Name

Description

n

The size to resize the string to.

c

The characters to append if the size increases.

Exceptions

Type

Thrown On

std::out_of_range

n > max_size()


PrevUpHomeNext