Example #1
0
 const bool operator<(const Team &that) const {
   vector<Player<HeightType>> this_sorted(sortHeightMembers());
   vector<Player<HeightType>> that_sorted(that.sortHeightMembers());
   for (int i = 0; i < this_sorted.size() && i < that_sorted.size(); ++i) {
     if (this_sorted[i] < that_sorted[i] == false) {
       return false;
     }
   }
   return true;
 }