Assign a new value to this string.
Synopsis
Declared in <bslstl_string.h>
template<class STRING_VIEW_LIKE_TYPE>
basic_string&
assign(STRING_VIEW_LIKE_TYPE const& replacement);
Description
Assign to this string the value of the specified replacement, and return a reference providing modifiable access to this string. Note that this method has exactly the same behavior as the corresponding operator=.
Return Value
reference providing modifiable access to this string
Parameters
Name |
Description |
replacement |
replacement character sequence |
Created with MrDocs