bsl::basic_string::resize

Change the length of this string to the specified newLength, erasing characters at the end if newLength < length() or appending the appropriate number of copies of the specified character at the end if length() < newLength.

Synopsis

Declared in <bslstl_string.h>

void
resize(
    size_type newLength,
    CHAR_TYPE character);