Use ArrayRef instead of a std::vector&.