Commit 94ec51a
committed
[libc++] Fix input-only range handling for
By calling `std::move` for related functions when the iterator is
possibly input-only. Also slightly changes the conditions of branch for
contiguous iterators to avoid error.basic_stringbasic_string1 parent d8bd7f1 commit 94ec51a
File tree
3 files changed
+46
-5
lines changed- libcxx
- include
- test/std/strings/basic.string
- string.cons
- string.modifiers/string_insert
3 files changed
+46
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1921 | 1921 | | |
1922 | 1922 | | |
1923 | 1923 | | |
1924 | | - | |
| 1924 | + | |
| 1925 | + | |
1925 | 1926 | | |
1926 | 1927 | | |
1927 | 1928 | | |
| |||
1954 | 1955 | | |
1955 | 1956 | | |
1956 | 1957 | | |
1957 | | - | |
| 1958 | + | |
1958 | 1959 | | |
1959 | 1960 | | |
1960 | 1961 | | |
| |||
2490 | 2491 | | |
2491 | 2492 | | |
2492 | 2493 | | |
2493 | | - | |
| 2494 | + | |
2494 | 2495 | | |
2495 | 2496 | | |
2496 | 2497 | | |
| |||
3082 | 3083 | | |
3083 | 3084 | | |
3084 | 3085 | | |
3085 | | - | |
| 3086 | + | |
3086 | 3087 | | |
3087 | | - | |
| 3088 | + | |
3088 | 3089 | | |
3089 | 3090 | | |
3090 | 3091 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| |||
125 | 142 | | |
126 | 143 | | |
127 | 144 | | |
| 145 | + | |
| 146 | + | |
128 | 147 | | |
129 | 148 | | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
33 | 52 | | |
34 | 53 | | |
35 | 54 | | |
| |||
39 | 58 | | |
40 | 59 | | |
41 | 60 | | |
| 61 | + | |
| 62 | + | |
42 | 63 | | |
43 | 64 | | |
44 | 65 | | |
| |||
0 commit comments