What function(s) determine the max or min of two integers?
What function(s) determine the max or min of two integers? Which _STD function(s) return the max, or min of 2 integers, signed or unsigned? Is it the max, min in the math.h header library or what could they be? Possible duplicate of Use of min and max functions in C++ – Radiodef 2 days ago 3 Answers 3 std::min and std::max in the <algorithm> library. As they're templates they return the min and max for every type that implements the < operator (or you can supply a functor for your custom comparison). std::min std::max <algorithm> < See Algorithms library (link to cppreference.com). You can use the new algorithm introduced in C++11( template<class T> pair<const T&, const T&> minmax(const T& a, const T...
