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.
newLength
newLength < length()
character
length() < newLength
Declared in <bslstl_string.h>
<bslstl_string.h>
void resize( size_type newLength, char character);