Question: what does minmax do in c++?
Answer: std::minmax Returns a pair with the smallest of a and b as first element, and the largest as second. If both are equivalent, the function returns make_pair(a,b) .