cpp/string/basic string/replace

Replaces the characters in the range or  with given characters.

@1,2@ Those characters are replaced with.

@3@ Those characters are replaced with a substring of.

@4,5@ Those characters are replaced with the characters in the range. @@ If is not a valid range, the behavior is undefined.

@6,7@ Those characters are replaced with the characters in the range.

@8,9@ Those characters are replaced with copies of.

@10@ Those characters are replaced with the characters in the range as if by.

@11@ Those characters are replaced with the characters in.

@12,13@

@14@

If or  is not a valid range, the behavior is undefined.

Return value
.

Exceptions
@1@ Throws std if. @3@ Throws std if or. @4,6,8@ Throws std if. @12,14@ Throws std if.

In all cases, throws std if the resulting string will exceed max_size.