Description : Returns an iterator to the smallest element in a range defined by [first, last)
.
Example:
std::vector<int> vec = {3, -1, 2, 10, 4};
auto smallestIt = std::min_element(vec.begin(), vec.end());
// prints -1
std::cout << "The smallest element is " << *smallestIt << '\n';