AlexDorohoff / OOP

Лабораторные работы по ООП
0 stars 0 forks source link

Замечания по FindMaxEx #12

Open alexey-malov opened 6 years ago

alexey-malov commented 6 years ago
template <typename T, typename Less = std::less<T>>
bool FindMaxEx(std::vector<T> const& arr, T& maxValue, Less const& less = Less())
alexey-malov commented 6 years ago
bool LessWeight(Student const left, Student const right)
{
    return (left.weight < right.weight);
}
alexey-malov commented 6 years ago