c++ vector max element code example
Example 1: maximum in vector
*max_element(a.begin(), a.end());
Example 2: max element in vector c++
auto max = *max_element(vector.begin(), vector.end());
Example 3: c++ max and min of vector
auto it = max_element(std::begin(cloud), std::end(cloud)); // c++11