24.4.4 Removal and Replacement Algorithms -
remove
remove
just like
remove_copy
, but works in place
Given:
a
1
2
3
2
4
2
5
6
p = remove(a.begin(), a.end(), 2);
Yields:
a
1
3
4
5
6
2
5
6
prev
|
top
|
next