@DanMašek OP themselves said "must be guaranteed ... that the size of new is not changed. ... Clearly,
std::move
does not work because it changes the size of the vector."