Are std::min and std::max better than fmin and fmax in C++?
Do they provide essentially the same functionality when comparing two integers?
Do you prefer to use one of these libraries of functions or write your own (to improve efficiency, portability, flexibility, and so on)?
The min and max functions are declared in the standard C++ algorithm header by the C++ Standard Template Library (STL).
The fmin and fmax functions are included in the standard C math.h header according to the C standard (C99).