Answers for "shortcut way to find max from vector in c++"

C++
7

max element in vector c++

auto max = *max_element(vector.begin(), vector.end());
Posted by: Guest on September-14-2020
-1

c++ max and min of vector

template <typename T, size_t N> const T* mybegin(const T (&a)[N]) { return a; }    
template <typename T, size_t N> const T* myend  (const T (&a)[N]) { return a+N; }
Posted by: Guest on July-20-2020

Code answers related to "shortcut way to find max from vector in c++"

Browse Popular Code Answers by Language