Use an ArrayRef instead of a std::vector&.