min Description : Compares two values, returning the smallest. Example: int a = 7, b = 3; auto smallest = std::min(a, b); // prints 3 std::cout << smallest << " "; See Sample code Run Code