This is equivalent to moving all the contents and then clearing the vector. This avoids a redundant allocation.