Avoid creating extra copies of the vector.