tmp/tmpk8gh7x75/{from.md → to.md}
RENAMED
|
@@ -96,12 +96,12 @@ the function replaces the characters in the range \[`begin() + pos1`,
|
|
| 96 |
*Returns:* `*this`.
|
| 97 |
|
| 98 |
*Throws:*
|
| 99 |
|
| 100 |
- `out_of_range` if `pos1 > size()`,
|
| 101 |
-
- `length_error` if the length of the resulting string would
|
| 102 |
-
|
| 103 |
- any exceptions thrown by `allocator_traits<Allocator>::allocate.`
|
| 104 |
|
| 105 |
``` cpp
|
| 106 |
constexpr basic_string& replace(const_iterator i1, const_iterator i2, const basic_string& str);
|
| 107 |
```
|
|
@@ -156,11 +156,11 @@ template<class InputIterator>
|
|
| 156 |
constexpr basic_string& replace(const_iterator i1, const_iterator i2,
|
| 157 |
InputIterator j1, InputIterator j2);
|
| 158 |
```
|
| 159 |
|
| 160 |
*Constraints:* `InputIterator` is a type that qualifies as an input
|
| 161 |
-
iterator [[container.
|
| 162 |
|
| 163 |
*Effects:* Equivalent to:
|
| 164 |
`return replace(i1, i2, basic_string(j1, j2, get_allocator()));`
|
| 165 |
|
| 166 |
``` cpp
|
|
|
|
| 96 |
*Returns:* `*this`.
|
| 97 |
|
| 98 |
*Throws:*
|
| 99 |
|
| 100 |
- `out_of_range` if `pos1 > size()`,
|
| 101 |
+
- `length_error` if the length of the resulting string would exceed
|
| 102 |
+
`max_size()`, or
|
| 103 |
- any exceptions thrown by `allocator_traits<Allocator>::allocate.`
|
| 104 |
|
| 105 |
``` cpp
|
| 106 |
constexpr basic_string& replace(const_iterator i1, const_iterator i2, const basic_string& str);
|
| 107 |
```
|
|
|
|
| 156 |
constexpr basic_string& replace(const_iterator i1, const_iterator i2,
|
| 157 |
InputIterator j1, InputIterator j2);
|
| 158 |
```
|
| 159 |
|
| 160 |
*Constraints:* `InputIterator` is a type that qualifies as an input
|
| 161 |
+
iterator [[container.reqmts]].
|
| 162 |
|
| 163 |
*Effects:* Equivalent to:
|
| 164 |
`return replace(i1, i2, basic_string(j1, j2, get_allocator()));`
|
| 165 |
|
| 166 |
``` cpp
|