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=.
Declared in <bslstl_string.h>
template<class STRING_VIEW_LIKE_TYPE>
basic_string<char8_t>&
assign(STRING_VIEW_LIKE_TYPE const& replacement);