From Jason Turner

[string::replace]

Diff to HTML by rtfpessoa

tmp/tmpskloqbdw/{from.md → to.md} RENAMED
@@ -16,11 +16,11 @@ basic_string&
16
 
17
  ``` cpp
18
  basic_string&
19
  replace(size_type pos1, size_type n1,
20
  const basic_string& str,
21
- size_type pos2, size_type n2);
22
  ```
23
 
24
  *Requires:* `pos1 <= size()` and `pos2 <= str.size()`.
25
 
26
  *Throws:* `out_of_range` if `pos1 > size()` or `pos2 > str.size()`.
@@ -142,7 +142,7 @@ basic_string& replace(const_iterator i1, const_iterator i2,
142
  *Requires:* \[`begin()`, `i1`) and \[`i1`, `i2`) are valid ranges.
143
 
144
  *Effects:* Calls
145
  `replace(i1 - begin(), i2 - i1, il.begin(), il.size())`.
146
 
147
- `*this`.
148
 
 
16
 
17
  ``` cpp
18
  basic_string&
19
  replace(size_type pos1, size_type n1,
20
  const basic_string& str,
21
+ size_type pos2, size_type n2 = npos);
22
  ```
23
 
24
  *Requires:* `pos1 <= size()` and `pos2 <= str.size()`.
25
 
26
  *Throws:* `out_of_range` if `pos1 > size()` or `pos2 > str.size()`.
 
142
  *Requires:* \[`begin()`, `i1`) and \[`i1`, `i2`) are valid ranges.
143
 
144
  *Effects:* Calls
145
  `replace(i1 - begin(), i2 - i1, il.begin(), il.size())`.
146
 
147
+ *Returns:* `*this`.
148