Use vector::clear() instead