std::minmax_element is an algorithm to obtain the minimum and maximum value from a container at the same time: std::minmax_element is a combination of std::min_element and std::max_element.
std::minmax_element is an algorithm to obtain the minimum and maximum value from a container at the same time: std::minmax_element is a combination of std::min_element and std::max_element.