The function then replaces the string controlled by
*this
with a string of length
size() - xlen
whose first pos elements are a copy of the initial elements of the original string controlled by
*this,
and whose remaining elements are a copy of the elements of the original string controlled by
*this
beginning at position
pos + xlen.