how to find max and seconda max element in vector c++ code example
Example: c++ max and min of vector
auto it = max_element(std::begin(cloud), std::end(cloud)); // c++11
auto it = max_element(std::begin(cloud), std::end(cloud)); // c++11