removed deprecated min, max

master
Marc Wäckerlin 20 years ago
parent 5591d50651
commit 6178545a15
  1. 43
      mrw/stdext.hpp

@ -9,6 +9,9 @@
@license LGPL, see file <a href="license.html">COPYING</a>
$Log$
Revision 1.7 2005/02/28 07:10:23 marc
removed deprecated min, max
Revision 1.6 2005/02/18 15:47:23 marc
missing #ifndef
new functions ifelse
@ -67,46 +70,6 @@ namespace mrw {
*/
//@{
/** @brief Deprecated! Do not use any more!
@deprecated Use @c std::min from @c
#include&nbsp;&lt;algorithm&gt; instead!
Get the lower of two values.
If both values are equal, @c a is returned.
@param a first value to compare
@param b second value to compare
@return the lower of both values
@pre #include <mrw/stdext.hpp>
@pre @c T must support <code>bool operator>(const T&, constT&)</code>
*/
template<typename T> const T& min(const T& a, const T& b) {
/// calls @c std::min(a,&nbsp;b);
/// @deprecated will be removed in next major release
return std::min(a, b);
}
/** @brief Deprecated! Do not use any more!
@deprecated Use @c std::max from @c
#include&nbsp;&lt;algorithm&gt; instead!
Get the higher of two values.
If both values are equal, @c a is returned.
@param a first value to compare
@param b second value to compare
@return the higher of both values
@pre #include <mrw/stdext.hpp>
@pre @c T must support <code>bool operator<(const T&, constT&)</code>
*/
template<typename T> const T& max(const T& a, const T& b) {
/// calls @c std::max(a,&nbsp;b);
/// @deprecated will be removed in next major release
return std::max(a, b);
}
/** @brief Dual <code>?:</code> operation:
<code>a&nbsp;?&nbsp;a&nbsp;:&nbsp;b</code>

Loading…
Cancel
Save