From Jason Turner

[string.insert]

Diff to HTML by rtfpessoa

tmp/tmp4r06ni36/{from.md → to.md} RENAMED
@@ -83,11 +83,11 @@ constexpr basic_string& insert(size_type pos, size_type n, charT c);
83
  ```
84
 
85
  *Effects:* Inserts `n` copies of `c` before the character at position
86
  `pos` if `pos < size()`, or otherwise at the end of the string.
87
 
88
- *Returns:* `*this`
89
 
90
  *Throws:*
91
 
92
  - `out_of_range` if `pos > size()`,
93
  - `length_error` if `n > max_size() - size()`, or
@@ -118,11 +118,11 @@ constexpr iterator insert(const_iterator p, size_type n, charT c);
118
  template<class InputIterator>
119
  constexpr iterator insert(const_iterator p, InputIterator first, InputIterator last);
120
  ```
121
 
122
  *Constraints:* `InputIterator` is a type that qualifies as an input
123
- iterator [[container.requirements.general]].
124
 
125
  *Preconditions:* `p` is a valid iterator on `*this`.
126
 
127
  *Effects:* Equivalent to
128
  `insert(p - begin(), basic_string(first, last, get_allocator()))`.
 
83
  ```
84
 
85
  *Effects:* Inserts `n` copies of `c` before the character at position
86
  `pos` if `pos < size()`, or otherwise at the end of the string.
87
 
88
+ *Returns:* `*this`.
89
 
90
  *Throws:*
91
 
92
  - `out_of_range` if `pos > size()`,
93
  - `length_error` if `n > max_size() - size()`, or
 
118
  template<class InputIterator>
119
  constexpr iterator insert(const_iterator p, InputIterator first, InputIterator last);
120
  ```
121
 
122
  *Constraints:* `InputIterator` is a type that qualifies as an input
123
+ iterator [[container.reqmts]].
124
 
125
  *Preconditions:* `p` is a valid iterator on `*this`.
126
 
127
  *Effects:* Equivalent to
128
  `insert(p - begin(), basic_string(first, last, get_allocator()))`.