Andrey Bukhanovsky
в доке про реаллокацию вроде нет ничего
Там нет реаллокации, но remove не меняет длину исходного массива, вместо этого она возвращает укороченный рендж. Цитата из доков:
Note that remove does not change the length of the original range directly; instead, it returns the shortened range. If its return value is not assigned to the original range, the original range will retain its original length, though its contents will have changed