24.4.4 Removal and Replacement Algorithms
- remove_copy (cont.)
- remove_copy(a.begin(), a.end(), b.begin(), 2) copies all values
except the 2s:
| a |
1 |
2 |
3 |
2 |
4 |
2 |
5 |
6 |
| b |
1 |
3 |
4 |
5 |
6 |
0 |
0 |
0 |
- Last 3 elements in b untouched
- b was not resized (see erase, below)
prev
|top
|next