Assign a new value to this string.
Synopsis
Declared in <bslstl_string.h>
basic_string&
assign(
CHAR_TYPE const* characterString,
size_type numChars);
Description
Assign to this string the specified initial numChars characters in the specified characterString, and return a reference providing modifiable access to this string. The behavior is undefined unless characterString is at least numChars long.
Return Value
reference providing modifiable access to this string
Parameters
Name |
Description |
characterString |
pointer to characters |
numChars |
number of characters |
Created with MrDocs