Long story short, I need the recursive function recQS to sort the private member variable "list.items". Items is of vector<T> type. I simply cannot figure out how to do this without declaring recQS as a friend to UList. How can I pass it into recQS? I've been searching the boards for a couple of hours.
Code:
template <class Y>
void sort(UList<Y>& list){
  recQS(list.items, 0, list.size()-1);
}

void recQS(_______, size_t first, size_t last){
...
...
...
}
Thanks for any help you might be able to offer!