Changeset 3262 for code/branches/core4/src/util
- Timestamp:
- Jul 1, 2009, 10:04:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/util/Math.h
r3214 r3262 78 78 { 79 79 return (x >= 0) ? 1 : -1; 80 }81 82 /**83 @brief Returns the smaller of two values.84 */85 template <typename T>86 inline T min(T a, T b)87 {88 return (a <= b) ? a : b;89 }90 91 /**92 @brief Returns the greater of two values.93 */94 template <typename T>95 inline T max(T a, T b)96 {97 return (a >= b) ? a : b;98 80 } 99 81
Note: See TracChangeset
for help on using the changeset viewer.