Same as remove above, but has complexity relaxed to linear.
A range spanning the remaining elements in the container that initially were right after r.
Complexity: O(n)
See Implementation
Same as remove above, but has complexity relaxed to linear.