is the a way to find maximum number in vector c++ code example Example: max element in vector c++ auto max = *max_element(vector.begin(), vector.end());