title: Use of min and max functions in C++
body: <p>From C++, are <code>std::min</code> and <code>std::max</code> preferable over <code>fmin</code> and <code>fmax</code>?  For comparing two integers, do they provide basically the same functionality?</p>
  <p>Do you tend to use one of these sets of functions or do you prefer to write your own (perhaps to improve efficiency, portability, flexibility, etc.)?</p>
  <p><em><strong>Notes:</strong></em></p>
  <ol>
  <li><p>The C++ Standard Template Library (STL) declares the <code>min</code> and <code>max</code> functions in the standard C++ <a href="http://en.wikipedia.org/wiki/Algorithm_(C%2B%2B)" rel="nofollow noreferrer">algorithm</a> header.</p>
  </li>
  <li><p>The C standard (C99) provides the <code>fmin</code> and <code>fmax</code> function in the standard C <a href="http://en.wikipedia.org/wiki/Math.h" rel="nofollow noreferrer">math.h</a> header.</p>
  </li>
  </ol>
  <p>Thanks in advance!</p>