ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.7 by root, Mon Sep 11 20:28:37 2006 UTC vs.
Revision 1.8 by root, Mon Sep 11 23:33:30 2006 UTC

110 { 110 {
111 erase ((unsigned int )(i - this->begin ())); 111 erase ((unsigned int )(i - this->begin ()));
112 } 112 }
113}; 113};
114 114
115template<typename T, typename U> static inline T min (T a, U b) { return a < (T)b ? a : (T)b; }
116template<typename T, typename U> static inline T max (T a, U b) { return a > (T)b ? a : (T)b; }
117template<typename T, typename U, typename V> static inline T clamp (T v, U a, V b) { return v < (T)a ? a : v >(T)b ? b : v; }
118
119template<typename T, typename U> static inline void swap (T& a, U& b) { T t=a; a=(T)b; b=(U)t; }
120
115#endif 121#endif
116 122

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines